本文整理汇总了TypeScript中vscode-debugadapter-testsupport.DebugClient.disconnectRequest方法的典型用法代码示例。如果您正苦于以下问题:TypeScript DebugClient.disconnectRequest方法的具体用法?TypeScript DebugClient.disconnectRequest怎么用?TypeScript DebugClient.disconnectRequest使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vscode-debugadapter-testsupport.DebugClient
的用法示例。
在下文中一共展示了DebugClient.disconnectRequest方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: it
it('should handle disconnect', async () => {
await Promise.all([
client.launch({program, stopOnEntry: true}),
client.waitForEvent('initialized')
]);
await client.disconnectRequest();
});
示例2:
}).then(response => {
assert.equal(response.body.variables.length, 3);
assert.equal(response.body.variables[0].name, "a");
assert.equal(response.body.variables[0].value, "10");
assert.equal(response.body.variables[1].name, "b");
assert.equal(response.body.variables[1].value, "undefined");
assert.equal(response.body.variables[2].name, "c");
assert.equal(response.body.variables[2].value, "undefined");
dc.disconnectRequest({});
done();
})
示例3: Error
.catch(err => {
// error expected
dc.disconnectRequest({});
done(new Error(err));
})