本文整理汇总了TypeScript中vscode-debugadapter-testsupport.DebugClient.configurationSequence方法的典型用法代码示例。如果您正苦于以下问题:TypeScript DebugClient.configurationSequence方法的具体用法?TypeScript DebugClient.configurationSequence怎么用?TypeScript DebugClient.configurationSequence使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vscode-debugadapter-testsupport.DebugClient
的用法示例。
在下文中一共展示了DebugClient.configurationSequence方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: test
test('should stop on entry', () => {
return Promise.all([
dc.configurationSequence(),
dc.launch({ program: 'tests/out/debuggee', stopOnEntry: true }),
dc.assertStoppedLocation('signal', { path: null, line: null, column: null })
]);
});
示例2: it
it('should stop on entry', async () => {
const [event] = await Promise.all([
client.waitForEvent('stopped'),
client.launch({program, stopOnEntry: true}),
client.configurationSequence()
]);
assert.propertyVal(event.body, 'reason', 'entry');
});
示例3: test
test('stdout and stderr events should be complete and in correct order', () => {
return Promise.all([
dc.configurationSequence(),
dc.launch({ program: PROGRAM }),
dc.assertOutput('stdout', 'Hello stdout 0\nHello stdout 1\nHello stdout 2\n'),
//dc.assertOutput('stderr', 'Hello stderr 0\nHello stderr 1\nHello stderr 2\n')
]);
});
示例4: test
test('should run program to the end (and not stop on Debugger.Break())', () => {
const PROGRAM = Path.join(DATA_ROOT, 'simple_break/Program.exe');
return Promise.all([
dc.configurationSequence(),
dc.launch({ program: PROGRAM, noDebug: true }),
dc.waitForEvent('terminated')
]);
});