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

Function waitForHit

src/test/breakpoints/breakpointsTest.ts:965–976  ·  view source on GitHub ↗
(p: TestP)

Source from the content-addressed store, hash-verified

963 };
964
965 const waitForHit = async (p: TestP) => {
966 const { threadId: pageThreadId } = await p.dap.once('stopped');
967 const { id: pageFrameId } = (
968 await p.dap.stackTrace({
969 threadId: pageThreadId!,
970 })
971 ).stackFrames[0];
972 await p.logger.logEvaluateResult(
973 await p.dap.evaluate({ expression: 'i', frameId: pageFrameId }),
974 );
975 return p.dap.continue({ threadId: pageThreadId! });
976 };
977
978 itIntegrates('works for valid', async ({ r }) => {
979 await doTest(r, async (p, source) => {

Callers 1

breakpointsTest.tsFile · 0.85

Calls 5

logEvaluateResultMethod · 0.80
continueMethod · 0.80
onceMethod · 0.65
stackTraceMethod · 0.65
evaluateMethod · 0.65

Tested by

no test coverage detected