technicalintermediateChapter 7 / 21 · Lesson 1 / 3
Eclipse ADT and ABAP OO debugging — Concepts and mental models
Use ADT breakpoints, watchpoints, call stack and exception analysis in the correct user/session.
Approx. 18 minutes · Guided practice + knowledge check
This concepts lesson covers “Eclipse ADT and ABAP OO debugging”, a intermediate technical troubleshooting topic. The symptom it starts from: An HTTP, class method or exception fails outside a classic report run. It follows a 3-phase evidence flow, references 4 tools (ADT Debug perspective, ABAP Unit, Exception breakpoints, Variables view) and ends with a self-check question. All system data in the examples is fictional.
01Understand the execution or business process
ADT debugging is organized around the editor, breakpoint and exception views, variables and call stack. A breakpoint stops in the active, compiled class when the correct application user executes it; a source file merely opened in Eclipse does not guarantee the running code is that version.
Exception breakpoints are powerful when the top-level handler catches or wraps the original failure. Reproduce a single failing request, configure a specific exception breakpoint, inspect the thrown class and input data, then navigate upward through the call stack to the business entry point.
ABAP Cloud and public-edition developer extensibility impose released-object and tenant restrictions. Do not present SE80 access or unrestricted classic debugger scripting as available in every cloud environment; prefer ADT with authorized development and unit tests.
- EVIDENCE PHASE 1Find request entry point and executing user
- EVIDENCE PHASE 2Attach eligible ADT breakpoint and inspect stack
- EVIDENCE PHASE 3Confirm changed object behavior in test
02Three mistakes that lead to false root causes
- An exception appearing in a UI response may be a deliberately mapped business message rather than an uncaught ABAP exception.
- A breakpoint in an inactive class revision may never correspond to the executed bytecode.
- Stepping backward or jumping does not undo earlier database or object-state changes.
03Worked evidence sample
Read the fictional evidence, identify which boundary last succeeded, and predict the next safe diagnostic tool before moving to the guided investigation.
METHOD read_order. DATA(row) = mt_orders[ order_id = iv_order_id ]. ENDMETHOD. " Fictional test input IV_ORDER_ID='DEMO-77' " mt_orders contains only DEMO-10 and DEMO-11 " Expected: controlled not-found result; actual: CX_SY_ITAB_LINE_NOT_FOUND
04Choose the right tools and release context
ABAP Development Tools in Eclipse, appropriate development tenant and released APIs for ABAP Cloud. Do not use a classic transaction code on a cloud edition unless it is supported by that environment and permitted for your role.
- ADT Debug perspective
- ABAP Unit
- Exception breakpoints
- Variables view
05Check your diagnosis
A class method uses mt_orders[ order_id = iv_order_id ] and CX_SY_ITAB_LINE_NOT_FOUND is raised. What should you examine first?
Select an answer to see the reasoning. This self-check is not a certification examination.
06Continue studying this SAP issue
The links below preserve the original published ERPClimb lessons in their own technical/functional modules. They supplement, not duplicate, this 22nd-module teaching page.
- Debugging Part 2: ABAP Debugger Essentials
- Debugging Part 3: External Breakpoints — Why They Are Not Hit
- Behavior Implementations Part 5: Performance, Unit Testing and Debugging
Additional officially documented tools: SAP Learning — ABAP debugging. Confirm the documentation version for your system.