@ai-capabilities-suite/mcp-debugger-core
Version:
Core debugging engine for Node.js and TypeScript applications. Provides Inspector Protocol integration, breakpoint management, variable inspection, execution control, profiling, hang detection, and source map support.
23 lines (22 loc) • 928 B
TypeScript
import { ChildProcess } from "child_process";
export interface SpawnWithInspectorResult {
process: ChildProcess;
wsUrl: string;
}
/**
* Spawn a Node.js process with inspector enabled
* @param command Command to execute
* @param args Command arguments
* @param cwd Working directory
* @returns Process handle and inspector WebSocket URL
*/
/**
* Spawn a Node.js process with inspector enabled (without breaking at start)
* Useful for hang detection where we want the process to run normally
* @param command Command to execute
* @param args Command arguments
* @param cwd Working directory
* @returns Process handle and inspector WebSocket URL
*/
export declare function spawnWithInspectorRunning(command: string, args?: string[], cwd?: string): Promise<SpawnWithInspectorResult>;
export declare function spawnWithInspector(command: string, args?: string[], cwd?: string): Promise<SpawnWithInspectorResult>;