| 194 | * This is a subset of RuntimeBackend focused on debug operations. |
| 195 | */ |
| 196 | export interface DebugBackend { |
| 197 | /** Enable debug tracing with the given configuration. */ |
| 198 | debugEnable(config: DebugConfig): Promise<void>; |
| 199 | /** Disable debug tracing. */ |
| 200 | debugDisable(): Promise<void>; |
| 201 | /** Query debug records. Returns headers and query result. */ |
| 202 | debugQuery(query: DebugQuery): Promise<{ headers: Uint8Array; result: DebugQueryResult }>; |
| 203 | /** Get payload for a specific record. */ |
| 204 | debugGetPayload(recordId: bigint): Promise<Uint8Array | null>; |
| 205 | /** Get debug statistics. */ |
| 206 | debugGetStats(): Promise<DebugStats>; |
| 207 | /** Export all debug records to a buffer. */ |
| 208 | debugExport(): Promise<Uint8Array>; |
| 209 | /** Reset (clear) debug records. */ |
| 210 | debugReset(): Promise<void>; |
| 211 | } |
| 212 | |
| 213 | /** |
| 214 | * Null debug backend for when no backend is available. |
no outgoing calls
no test coverage detected