breakpoint_set
Set breakpoints on specific lines in source files with optional 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sourcePath": "<sourcePath>",
"line": "<line>"
},
"name": "breakpoint_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Line number (1-based) to break on. | |
| condition | No | Optional expression — break only when this evaluates to true. | |
| logMessage | No | If set, makes this a logpoint (tracepoint): the message is logged and execution continues without pausing. Use {expr} interpolation. | |
| sourcePath | Yes | Absolute path to the source file. | |
| hitCondition | No | Optional hit count expression (e.g. ">5") — break only on the Nth+ hit. |