set_breakpoint
Pause Node.js processes at specific lines by setting breakpoints using file URLs and line numbers, with optional conditions for precise debugging control.
Instructions
Set a breakpoint in the debugged process. Use full file:// URLs for reliable breakpoint hits.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
condition | No | Optional condition for the breakpoint | |
file | Yes | File URL or path (use file:///absolute/path/to/file.js for best results) | |
line | Yes | Line number (1-based) |
Input Schema (JSON Schema)
{
"properties": {
"condition": {
"description": "Optional condition for the breakpoint",
"type": "string"
},
"file": {
"description": "File URL or path (use file:///absolute/path/to/file.js for best results)",
"type": "string"
},
"line": {
"description": "Line number (1-based)",
"type": "number"
}
},
"required": [
"file",
"line"
],
"type": "object"
}