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

Method getMainThread

src/test/dart_debug_client.ts:241–247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

239 }
240
241 public async getMainThread(): Promise<DebugProtocol.Thread> {
242 // For tests, we can assume the last thread is the "main" one, as dartdev, pub etc. will all
243 // be spawned first.
244 const threadsResponse = await this.threadsRequest();
245 const threads = threadsResponse.body.threads;
246 return threads[threads.length - 1];
247 }
248
249 public async resume(): Promise<DebugProtocol.ContinueResponse> {
250 const thread = await this.getMainThread();

Callers 4

resumeMethod · 0.95
stepInMethod · 0.95
getStackMethod · 0.95
evaluateForFrameMethod · 0.95

Calls 1

threadsRequestMethod · 0.80

Tested by

no test coverage detected