@debugmcp/mcp-debugger
Version:
Run-time step-through debugging for LLM agents.
40 lines (39 loc) • 1.72 kB
TypeScript
/**
* Centralized error messages for timeout-related errors in the debug server.
* This ensures consistency between implementation and tests.
*/
export declare const ErrorMessages: {
/**
* Error message for DAP request timeouts
* Occurs when: A Debug Adapter Protocol request doesn't receive a response within the timeout period
* Used in: src/proxy/proxy-manager.ts
* Default timeout: 35 seconds
* @param command - The DAP command that timed out (e.g., 'stackTrace', 'variables')
* @param timeout - The timeout duration in seconds
*/
dapRequestTimeout: (command: string, timeout: number) => string;
/**
* Error message for proxy initialization timeouts
* Occurs when: The debug proxy process fails to initialize within the timeout period
* Used in: src/proxy/proxy-manager.ts
* Default timeout: 30 seconds
* @param timeout - The timeout duration in seconds
*/
proxyInitTimeout: (timeout: number) => string;
/**
* Error message for step operation timeouts
* Occurs when: A step operation (stepOver, stepInto, stepOut) doesn't receive a 'stopped' event within the timeout
* Used in: src/session/session-manager.ts
* Default timeout: 5 seconds
* @param timeout - The timeout duration in seconds
*/
stepTimeout: (timeout: number) => string;
/**
* Error message for adapter ready timeouts
* Occurs when: Waiting for the debug adapter to be configured times out
* Used in: src/session/session-manager.ts (logged as warning)
* Default timeout: 30 seconds
* @param timeout - The timeout duration in seconds
*/
adapterReadyTimeout: (timeout: number) => string;
};