{"at":"2026-11-23T00:11:42.639Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T00:11:43.233Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T00:11:43.434Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T00:11:44.087Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"debugger-server","version":"1.1.7"}}}}
{"at":"2026-11-23T00:11:44.087Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T00:11:44.087Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T00:11:44.091Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Start a new debug session with a Node.js process. The process will be paused at the start.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"args":{"description":"Command arguments (e.g., [\"test.js\"])","items":{"type":"string"},"type":"array"},"command":{"description":"The command to execute (e.g., \"node\", \"npm\")","type":"string"},"cwd":{"description":"Working directory for the process","type":"string"},"timeout":{"description":"Timeout in milliseconds (default: 30000)","type":"number"}},"required":["command"],"type":"object"},"name":"debugger_start"},{"description":"Set a breakpoint at a specific file and line number. Optionally provide a condition.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"condition":{"description":"Optional condition expression (e.g., \"x > 10\")","type":"string"},"file":{"description":"The file path (absolute or relative)","type":"string"},"line":{"description":"The line number (1-indexed)","type":"number"},"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId","file","line"],"type":"object"},"name":"debugger_set_breakpoint"},{"description":"Resume execution of a paused debug session until the next breakpoint or program termination.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId"],"type":"object"},"name":"debugger_continue"},{"description":"Execute the current line and pause at the next line in the same scope.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId"],"type":"object"},"name":"debugger_step_over"},{"description":"Execute the current line and pause at the first line inside any called function.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId"],"type":"object"},"name":"debugger_step_into"},{"description":"Execute until the current function returns and pause at the calling location.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId"],"type":"object"},"name":"debugger_step_out"},{"description":"Pause a running debug session and return the current execution location.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId"],"type":"object"},"name":"debugger_pause"},{"description":"Remove a breakpoint from the debug session.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"breakpointId":{"description":"The breakpoint ID to remove","type":"string"},"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId","breakpointId"],"type":"object"},"name":"debugger_remove_breakpoint"},{"description":"Toggle a breakpoint between enabled and disabled states.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"breakpointId":{"description":"The breakpoint ID to toggle","type":"string"},"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId","breakpointId"],"type":"object"},"name":"debugger_toggle_breakpoint"},{"description":"Get all breakpoints for a debug session with their file, line, condition, and enabled state.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId"],"type":"object"},"name":"debugger_list_breakpoints"},{"description":"Get all local variables in the current scope with their names, values, and types.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId"],"type":"object"},"name":"debugger_get_local_variables"},{"description":"Get global variables accessible from the current scope with their names, values, and types.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId"],"type":"object"},"name":"debugger_get_global_variables"},{"description":"Inspect an object by its object reference, returning properties with values. Handles nested objects and arrays up to a specified depth.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"maxDepth":{"description":"Maximum depth to traverse (default: 2)","type":"number"},"objectId":{"description":"The object ID (from a previous inspection or evaluation)","type":"string"},"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId","objectId"],"type":"object"},"name":"debugger_inspect_object"},{"description":"Add an expression to the watch list. The expression will be evaluated each time the process pauses.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"expression":{"description":"The expression to watch (e.g., \"x\", \"obj.prop\")","type":"string"},"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId","expression"],"type":"object"},"name":"debugger_add_watch"},{"description":"Remove an expression from the watch list.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"sessionId":{"description":"The debug session ID","type":"string"},"watchId":{"description":"The watch ID (expression) to remove","type":"string"}},"required":["sessionId","watchId"],"type":"object"},"name":"debugger_remove_watch"},{"description":"Get all watched expressions with their current values. Reports value changes since the last pause.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId"],"type":"object"},"name":"debugger_get_watches"},{"description":"Switch the execution context to a specific stack frame by index. Frame 0 is the top frame (current location).","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"frameIndex":{"description":"The frame index (0 = top frame, 1 = caller, etc.)","type":"number"},"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId","frameIndex"],"type":"object"},"name":"debugger_switch_stack_frame"},{"description":"Stop a debug session, cleanup all resources, and kill the process if still running.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId"],"type":"object"},"name":"debugger_stop_session"},{"description":"Evaluate a JavaScript expression in the current execution context and return the result with type information.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"expression":{"description":"The JavaScript expression to evaluate (e.g., \"x + 1\")","type":"string"},"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId","expression"],"type":"object"},"name":"debugger_inspect"},{"description":"Get the current call stack with function names, file locations (absolute paths), and line numbers.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId"],"type":"object"},"name":"debugger_get_stack"},{"description":"Run a command and detect if it hangs or enters an infinite loop. Returns hang status, location, and stack trace if hung.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"args":{"description":"Command arguments (e.g., [\"test.js\"])","items":{"type":"string"},"type":"array"},"command":{"description":"The command to execute (e.g., \"node\", \"npm\")","type":"string"},"cwd":{"description":"Working directory for the process","type":"string"},"sampleInterval":{"description":"Sample interval in milliseconds for infinite loop detection (e.g., 100)","type":"number"},"timeout":{"description":"Timeout in milliseconds (e.g., 5000)","type":"number"}},"required":["command","timeout"],"type":"object"},"name":"debugger_detect_hang"},{"description":"Set a logpoint that logs a message without pausing execution. Use {variable} syntax for interpolation.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"file":{"description":"The file path (absolute or relative)","type":"string"},"line":{"description":"The line number (1-indexed)","type":"number"},"logMessage":{"description":"Log message template with {variable} interpolation (e.g., \"Value is {x}\")","type":"string"},"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId","file","line","logMessage"],"type":"object"},"name":"debugger_set_logpoint"},{"description":"Set an exception breakpoint to pause on caught and/or uncaught exceptions.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"breakOnCaught":{"description":"Whether to break on caught exceptions","type":"boolean"},"breakOnUncaught":{"description":"Whether to break on uncaught exceptions","type":"boolean"},"exceptionFilter":{"description":"Optional regex pattern to filter exceptions by type/message","type":"string"},"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId","breakOnCaught","breakOnUncaught"],"type":"object"},"name":"debugger_set_exception_breakpoint"},{"description":"Set a function breakpoint to pause when a function with the given name is called.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"functionName":{"description":"Function name or regex pattern to match","type":"string"},"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId","functionName"],"type":"object"},"name":"debugger_set_function_breakpoint"},{"description":"Set a hit count condition for a breakpoint. The breakpoint will only pause when the condition is met.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"breakpointId":{"description":"The breakpoint ID","type":"string"},"operator":{"description":"Hit count operator (==, >, >=, <, <=, % for modulo)","enum":["==",">",">=","<","<=","%"],"type":"string"},"sessionId":{"description":"The debug session ID","type":"string"},"value":{"description":"Hit count value to compare against","type":"number"}},"required":["sessionId","breakpointId","operator","value"],"type":"object"},"name":"debugger_set_hit_count_condition"},{"description":"Start CPU profiling for a debug session. Collects CPU profile data for performance analysis.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId"],"type":"object"},"name":"debugger_start_cpu_profile"},{"description":"Stop CPU profiling and return the profile data with bottleneck analysis.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId"],"type":"object"},"name":"debugger_stop_cpu_profile"},{"description":"Take a heap snapshot for memory analysis. Returns memory usage report.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId"],"type":"object"},"name":"debugger_take_heap_snapshot"},{"description":"Get performance metrics including current memory usage, performance timeline, and leak detection.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"includeLeakDetection":{"description":"Whether to run memory leak detection (takes 10 seconds)","type":"boolean"},"includePerformanceTimeline":{"description":"Whether to include performance timeline data","type":"boolean"},"sessionId":{"description":"The debug session ID","type":"string"}},"required":["sessionId"],"type":"object"},"name":"debugger_get_performance_metrics"}]}}}
