Debugging Part 2: ABAP Debugger Essentials
Preview · a free account unlocks the full lesson
Use the ABAP debugger efficiently: starting it (/h, breakpoints in SE38/SE80/ADT), session vs external breakpoints, stepping (F5, F6, F7, F8), breakpoints at statements/messages/exceptions, changing variables, jumping, call stack, and the desktops and tools of the new debugger.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Part 1 of this series defined the overall approach to debugging; this lesson covers the main tool itself — the ABAP Debugger.
You can start it by typing /h in the command field and then executing the next step, which starts the debugger at the next dialog step; by setting a session breakpoint in the editor (SE38, SE80, or ADT), using Ctrl+Shift+F12 or the stop-sign icon, which is valid only for your current logon session; by setting an external (user) breakpoint, valid for your user across all sessions, including RFC and HTTP calls, covered in Part 3; or, in test code only, by inserting a BREAK-POINT statement or BREAK <user> directly — checkpoint groups, using BREAK-POINT ID, should be used instead anywhere outside test code.
Stepping through code uses F5 to step into a routine, F6 to execute it and stay at the same level, F7 to return out of the current routine to its caller, and F8 to run on to the next breakpoint. "Go to statement" (Shift+F12 on a line, or the "Goto statement" command) jumps to a line without executing the code in between, and should be used carefully.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Full explanation
- Code example
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
Referenced SAP objects
Reviewed reference pages for the objects this page mentions.
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.