(opts?: {
executor?: CommandExecutor;
spawner?: InteractiveSpawner;
requestTimeoutMs?: number;
})
| 627 | } |
| 628 | |
| 629 | export async function createDapBackend(opts?: { |
| 630 | executor?: CommandExecutor; |
| 631 | spawner?: InteractiveSpawner; |
| 632 | requestTimeoutMs?: number; |
| 633 | }): Promise<DebuggerBackend> { |
| 634 | const config = getConfig(); |
| 635 | const executor = opts?.executor ?? getDefaultCommandExecutor(); |
| 636 | const spawner = opts?.spawner ?? getDefaultInteractiveSpawner(); |
| 637 | const requestTimeoutMs = opts?.requestTimeoutMs ?? config.dapRequestTimeoutMs; |
| 638 | return new DapBackend({ |
| 639 | executor, |
| 640 | spawner, |
| 641 | requestTimeoutMs, |
| 642 | logEvents: config.dapLogEvents, |
| 643 | }); |
| 644 | } |
no test coverage detected