本文整理匯總了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));
})