set_breakpoint
Set a breakpoint at a specific line in a source file with optional tracepoint mode to dump variables, conditional expressions, and hit count conditions for precise debugging.
Instructions
Set a breakpoint at a specific line in a source file. Use dumpFile to create a tracepoint that dumps variables to a file and auto-continues.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the source file | |
| line | Yes | Line number (1-based) | |
| trace | No | Enable tracepoint mode: collect variables to session state and auto-continue | |
| dumpFile | No | Also dump variables to this file (JSONL format). Implies trace=true. | |
| maxDumps | No | Max number of traces before stopping at this breakpoint. Default: unlimited. | |
| condition | No | Optional conditional expression (breakpoint only triggers when true) | |
| sessionId | Yes | Debug session ID | |
| hitCondition | No | Optional hit count condition (e.g., ">5", "==10") |