Set a breakpoint
set_breakpointPause Node.js execution at a chosen file and line, optionally only when a JavaScript condition is truthy, even if the file is not loaded yet. Returns a breakpoint ID for later removal.
Instructions
Set a (optionally conditional) breakpoint at file:line. Line is 1-based. The file may not be loaded yet; the breakpoint resolves when it is. Returns the breakpoint id to use with remove_breakpoint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the source file, relative to the session cwd or absolute. | |
| line | Yes | 1-based line number. | |
| condition | No | JS expression; the breakpoint only triggers when it is truthy, e.g. `user.id === 42`. |