MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / createDapBackend

Function createDapBackend

src/utils/debugger/backends/dap-backend.ts:629–644  ·  view source on GitHub ↗
(opts?: {
  executor?: CommandExecutor;
  spawner?: InteractiveSpawner;
  requestTimeoutMs?: number;
})

Source from the content-addressed store, hash-verified

627}
628
629export 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}

Callers 2

defaultBackendFactoryFunction · 0.90

Calls 3

getConfigFunction · 0.90

Tested by

no test coverage detected