MCPcopy Create free account
hub / github.com/Snapchat/Valdi / fromDebugger

Method fromDebugger

valdi/vscode_debugger/src/adapter/stackTrace.ts:156–167  ·  view source on GitHub ↗
(thread: Thread, callFrame: Cdp.Debugger.CallFrame)

Source from the content-addressed store, hash-verified

154 }
155
156 static fromDebugger(thread: Thread, callFrame: Cdp.Debugger.CallFrame): StackFrame {
157 const result = new StackFrame(thread, callFrame.functionName, thread.rawLocation(callFrame));
158 result._scope = {
159 chain: callFrame.scopeChain,
160 thisObject: callFrame.this,
161 returnValue: callFrame.returnValue,
162 variables: new Array(callFrame.scopeChain.length).fill(undefined),
163 // eslint-disable-next-line
164 callFrameId: callFrame.callFrameId!,
165 };
166 return result;
167 }
168
169 static asyncSeparator(thread: Thread, name: string): StackFrame {
170 const result = new StackFrame(thread, name, { lineNumber: 1, columnNumber: 1, url: '' });

Callers

nothing calls this directly

Calls 1

rawLocationMethod · 0.80

Tested by

no test coverage detected