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

Interface DebuggerBackend

src/utils/debugger/backends/DebuggerBackend.ts:3–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import type { BreakpointInfo, BreakpointSpec, DebugExecutionState } from '../types.ts';
2
3export interface DebuggerBackend {
4 readonly kind: 'lldb-cli' | 'dap';
5
6 attach(opts: { pid: number; simulatorId: string; waitFor?: boolean }): Promise<void>;
7 detach(): Promise<void>;
8
9 runCommand(command: string, opts?: { timeoutMs?: number }): Promise<string>;
10 resume(opts?: { threadId?: number }): Promise<void>;
11
12 addBreakpoint(spec: BreakpointSpec, opts?: { condition?: string }): Promise<BreakpointInfo>;
13 removeBreakpoint(id: number): Promise<string>;
14
15 getStack(opts?: { threadIndex?: number; maxFrames?: number }): Promise<string>;
16 getVariables(opts?: { frameIndex?: number }): Promise<string>;
17 getExecutionState(opts?: { timeoutMs?: number }): Promise<DebugExecutionState>;
18
19 dispose(): Promise<void>;
20}

Callers 36

createSessionMethod · 0.65
invokeAndCollectFunction · 0.65
invokeAndCollectFunction · 0.65
detachSessionMethod · 0.65
disposeAllMethod · 0.65
runCommandMethod · 0.65

Implementers 2

DapBackendsrc/utils/debugger/backends/dap-backen
LldbCliBackendsrc/utils/debugger/backends/lldb-cli-b

Calls

no outgoing calls

Tested by

no test coverage detected