本文整理汇总了TypeScript中vscode-debugadapter-testsupport.DebugClient.setExceptionBreakpointsRequest方法的典型用法代码示例。如果您正苦于以下问题:TypeScript DebugClient.setExceptionBreakpointsRequest方法的具体用法?TypeScript DebugClient.setExceptionBreakpointsRequest怎么用?TypeScript DebugClient.setExceptionBreakpointsRequest使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vscode-debugadapter-testsupport.DebugClient
的用法示例。
在下文中一共展示了DebugClient.setExceptionBreakpointsRequest方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: it
it('should support stopping on everything', async () => {
await client.setExceptionBreakpointsRequest({filters: ['*']});
// Notice
const [, {threadId}] = await Promise.all([
client.configurationDoneRequest(),
assertStoppedLocation('exception', program, 6)
]);
// Warning
await Promise.all([
client.continueRequest({threadId}),
assertStoppedLocation('exception', program, 9)
]);
// Exception
await Promise.all([
client.continueRequest({threadId}),
assertStoppedLocation('exception', program, 12)
]);
// Fatal error: uncaught exception
await Promise.all([
client.continueRequest({threadId}),
assertStoppedLocation('exception', program, 12)
]);
await Promise.all([
client.continueRequest({threadId}),
client.waitForEvent('terminated')
]);
});
示例2: it
it('should not hit a caught exception breakpoint when those are disabled', async function() {
await dc.setExceptionBreakpointsRequest({filters: [ 'uncaught' ]});
util.evaluateCloaked(dc, 'throwAndCatchException()');
await util.assertPromiseTimeout(util.receiveStoppedEvent(dc), 1000);
});
示例3:
dc.waitForEvent('initialized').then(event => {
return dc.setExceptionBreakpointsRequest({
filters: [ 'uncaught' ]
});
}).then(response => {