setBreakpoint
Set a breakpoint in Go programs during debugging sessions by specifying the file, line number, and optional condition using the Delve debugger interface.
Instructions
Set a breakpoint in the debugged program
Input Schema
Name | Required | Description | Default |
---|---|---|---|
condition | No | Optional condition for the breakpoint | |
file | Yes | File path where to set the breakpoint | |
line | Yes | Line number for the breakpoint | |
sessionId | Yes | ID of the debug session |
Input Schema (JSON Schema)
{
"properties": {
"condition": {
"description": "Optional condition for the breakpoint",
"type": "string"
},
"file": {
"description": "File path where to set the breakpoint",
"type": "string"
},
"line": {
"description": "Line number for the breakpoint",
"type": "number"
},
"sessionId": {
"description": "ID of the debug session",
"type": "string"
}
},
"required": [
"sessionId",
"file",
"line"
],
"type": "object"
}