Set ABAP Breakpoint
abap_debug_set_breakpointSets an external SAP breakpoint on a specified source line for a user before a listen session, enabling the program run to pause at that line.
Instructions
Set an external breakpoint on one source line for a user. Returns the breakpoint id (or an error entry), which abap_debug_delete_breakpoint takes. Set breakpoints before abap_debug_session with action listen, then run the program as that user to trigger it. Registers the breakpoint in SAP for that user; it does not change the object's source.
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": {
"sourceUrl": "<sourceUrl>",
"line": "<line>"
},
"name": "abap_debug_set_breakpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | 1-based line number in that source; use get_abap_object_lines or search_abap_object_lines to find it | |
| username | No | SAP username (defaults to connected user) | |
| sourceUrl | Yes | ADT source URL including /source/main (e.g. /sap/bc/adt/programs/programs/ZREPORT/source/main, /sap/bc/adt/oo/classes/zcl_order_api/source/main) | |
| connectionId | No | SAP system connection ID |