本文整理匯總了TypeScript中vscode-debugadapter-testsupport.DebugClient.start方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript DebugClient.start方法的具體用法?TypeScript DebugClient.start怎麽用?TypeScript DebugClient.start使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類vscode-debugadapter-testsupport.DebugClient
的用法示例。
在下文中一共展示了DebugClient.start方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: setup
setup(done => {
dc = new DebugClient('mono', DEBUG_ADAPTER, 'mono');
dc.start().then(_ => {
done();
}).catch(err => {
done(err);
});
});
示例2: setup
setup(done => {
dc = new DebugClient('node', DEBUG_ADAPTER, 'node');
dc.start().then(() => {
done();
}).catch(err => {
done(err);
});
});
示例3: beforeEach
beforeEach('start debug adapter', async () => {
client = new DebugClient('node', path.normalize(__dirname + '/../phpDebug'), 'php');
client.defaultTimeout = 10000;
await client.start(process.env.VSCODE_DEBUG_PORT && parseInt(process.env.VSCODE_DEBUG_PORT));
});
示例4: setup
setup( () => {
dc = new DebugClient('atbackend', DEBUG_ADAPTER, 'atbackend');
return dc.start();
});
示例5: setup
setup(() => {
dc = new DebugClient('node', DEBUG_ADAPTER, 'node');
dc.start();
});
示例6: setup
setup( () => {
dc = new DebugClient('node', DEBUG_ADAPTER, 'node');
return dc.start(); // add port to run as server
});
示例7: setup
setup(() => {
dc = new DebugClient('node', './adapter.js', 'lldb');
return dc.start();
});