| 1 | import type { BreakpointInfo, BreakpointSpec, DebugExecutionState } from '../types.ts'; |
| 2 | |
| 3 | export 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 | } |
no outgoing calls
no test coverage detected