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

Method waitForStop

src/test/debug_client_ms.ts:378–386  ·  view source on GitHub ↗
(reason?: string, description?: string)

Source from the content-addressed store, hash-verified

376 }
377
378 public waitForStop(reason?: string, description?: string): Promise<DebugProtocol.Event> {
379 return this.waitForEvent(
380 'stopped',
381 description,
382 undefined,
383 // Skip entry stops because they always occur.
384 reason !== "entry" ? (e) => e.body?.reason !== "entry" : undefined,
385 );
386 }
387
388 /*
389 * Returns a promise that will resolve if a 'stopped' event was received within some specified time

Calls 1

waitForEventMethod · 0.95

Tested by 2

testBreakpointConditionFunction · 0.64
testBreakpointConditionFunction · 0.64