Set breakpoint
debug_set_breakpointSet a line breakpoint in a Node.js program by file path or package specifier, with optional condition and logpoint support. Uses source maps for original sources.
Instructions
Set a line breakpoint with Debugger.setBreakpointByUrl. file is a path or a package specifier resolved from the debuggee program node_modules. Original sources are remapped through file://, inline, or allowed http(s) source maps. Lines and columns are 1-based. logMessage is a DAP-style logpoint (interpolates {expr}, does not pause).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Source path, or a package name such as demo-ext or babel-plugin-foo resolved from the program node_modules | |
| line | Yes | 1-based line number | |
| column | No | 1-based column number. Default 1 (start of line) | |
| condition | No | JavaScript expression. Pause only when it is truthy | |
| sessionId | No | Session id from debug_launch/debug_attach. Required when more than one session is live. | |
| logMessage | No | DAP-style logpoint. Interpolates {expr} via console.log and does not pause. Combined with condition when both are set |