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

Method loadFrames

valdi/vscode_debugger/src/adapter/stackTrace.ts:64–79  ·  view source on GitHub ↗
(limit: number)

Source from the content-addressed store, hash-verified

62 }
63
64 async loadFrames(limit: number): Promise<StackFrame[]> {
65 while (this._frames.length < limit && this._asyncStackTraceId) {
66 if (this._asyncStackTraceId.debuggerId)
67 this._lastFrameThread = Thread.threadForDebuggerId(this._asyncStackTraceId.debuggerId);
68 if (!this._lastFrameThread) {
69 this._asyncStackTraceId = undefined;
70 break;
71 }
72 const response = await this._lastFrameThread
73 .cdp()
74 .Debugger.getStackTrace({ stackTraceId: this._asyncStackTraceId });
75 this._asyncStackTraceId = undefined;
76 if (response) this._appendStackTrace(this._lastFrameThread, response.stackTrace);
77 }
78 return this._frames;
79 }
80
81 frame(frameId: number): StackFrame | undefined {
82 return this._frameById.get(frameId);

Callers 5

formatMethod · 0.95
toDapMethod · 0.95
_onConsoleMessageMethod · 0.80
_formatExceptionMethod · 0.80
shouldSmartStepMethod · 0.80

Calls 4

_appendStackTraceMethod · 0.95
threadForDebuggerIdMethod · 0.80
getStackTraceMethod · 0.65
cdpMethod · 0.45

Tested by

no test coverage detected