MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / getStack

Method getStack

src/test/dart_debug_client.ts:259–262  ·  view source on GitHub ↗
(startFrame?: number, levels?: number)

Source from the content-addressed store, hash-verified

257 }
258
259 public async getStack(startFrame?: number, levels?: number): Promise<DebugProtocol.StackTraceResponse> {
260 const thread = await this.getMainThread();
261 return this.stackTraceRequest({ threadId: thread.id, startFrame, levels });
262 }
263
264 public async getTopFrameVariables(scope: "Exceptions" | "Locals"): Promise<DebugProtocol.Variable[]> {
265 const stack = await this.getStack();

Calls 2

getMainThreadMethod · 0.95
stackTraceRequestMethod · 0.80

Tested by

no test coverage detected