本文整理汇总了TypeScript中vscode-debugadapter-testsupport.DebugClient.stop方法的典型用法代码示例。如果您正苦于以下问题:TypeScript DebugClient.stop方法的具体用法?TypeScript DebugClient.stop怎么用?TypeScript DebugClient.stop使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vscode-debugadapter-testsupport.DebugClient
的用法示例。
在下文中一共展示了DebugClient.stop方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: teardown
teardown(done => {
dc.stop().then(_ => {
done();
}).catch(err => {
done(err);
});
});
示例2: teardown
teardown(done => {
return dc.stop().then(() => {
done();
}).catch(err => {
done(err);
});
});
示例3: testSourcemaps
export async function testSourcemaps(
dc: DebugClient,
srcDir: string,
stepInRepeat = 1
): Promise<void> {
let fPath = path.join(srcDir, 'f.js');
let gPath = path.join(srcDir, 'g.js');
await util.setBreakpoints(dc, fPath, [ 7 ]);
let stoppedEvent = await util.runCommandAndReceiveStoppedEvent(dc, () =>
util.evaluateDelayed(dc, 'f()', 0));
let threadId = stoppedEvent.body.threadId!;
await checkDebuggeeState(dc, threadId, fPath, 7, 'x', '2');
for (let i = 0; i < stepInRepeat; i++) {
await util.runCommandAndReceiveStoppedEvent(dc, () => dc.stepInRequest({ threadId }));
}
await checkDebuggeeState(dc, threadId, gPath, 5, 'y', '2');
await util.runCommandAndReceiveStoppedEvent(dc, () => dc.stepOutRequest({ threadId }));
if (process.env['NEW_STEP_OUT_BEHAVIOR'] !== 'true') {
await util.runCommandAndReceiveStoppedEvent(dc, () => dc.stepOutRequest({ threadId }));
}
await checkDebuggeeState(dc, threadId, fPath, 8, 'x', '4');
await util.setBreakpoints(dc, gPath, [ 5 ]);
await util.runCommandAndReceiveStoppedEvent(dc, () => dc.continueRequest({ threadId }));
await checkDebuggeeState(dc, threadId, gPath, 5, 'y', '4');
await dc.stop();
}
示例4: afterEach
afterEach(async function() {
await dc.stop();
});
示例5: afterEach
afterEach('stop debug adapter', () =>
client.stop()
示例6: teardown
teardown( () => dc.stop() );
示例7: afterEach
afterEach(async function() {
if (dc) {
await dc.stop();
dc = undefined;
}
});
示例8: teardown
teardown(() => {
dc.stop();
});