breakpoint_set
Set line breakpoints with conditions, hit counts, or log messages for debugging ASP.NET Core applications.
Instructions
Set a line breakpoint in a source file. Supports conditional, hit-count, and logpoint (logMessage) breakpoints.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sourcePath | Yes | Absolute path to the source file. | |
| line | Yes | Line number (1-based) to break on. | |
| condition | No | Optional expression — break only when this evaluates to true. | |
| hitCondition | No | Optional hit count expression (e.g. ">5") — break only on the Nth+ hit. | |
| logMessage | No | If set, makes this a logpoint (tracepoint): the message is logged and execution continues without pausing. Use {expr} interpolation. |