MCPcopy
hub / github.com/microsoft/vscode-js-debug / waitForPause

Function waitForPause

src/test/testIntegrationUtils.ts:126–131  ·  view source on GitHub ↗
(p: ITestHandle, cb?: (threadId: number) => Promise<void>)

Source from the content-addressed store, hash-verified

124});
125
126export async function waitForPause(p: ITestHandle, cb?: (threadId: number) => Promise<void>) {
127 const { threadId } = p.log(await p.dap.once('stopped'));
128 await p.logger.logStackTrace(threadId);
129 await cb?.(threadId);
130 return p.dap.continue({ threadId });
131}

Callers 4

breakpointsTest.tsFile · 0.90
waitForPauseAndLogIFunction · 0.90
sourcesTest.tsFile · 0.90
stacksTest.tsFile · 0.90

Calls 4

logStackTraceMethod · 0.80
continueMethod · 0.80
logMethod · 0.65
onceMethod · 0.65

Tested by

no test coverage detected