technicalintermediateChapter 7 / 21 · Lesson 2 / 3
Eclipse ADT and ABAP OO debugging — Guided debugger and evidence walkthrough
Use ADT breakpoints, watchpoints, call stack and exception analysis in the correct user/session.
Approx. 25 minutes · Guided practice + knowledge check
This guided walkthrough 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 and a six-step runbook, 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.
01Set up a safe diagnostic reproduction
ABAP Development Tools in Eclipse, appropriate development tenant and released APIs for ABAP Cloud. Use fictional keys and DEV/QA data. The expected outcome is: Use ADT breakpoints, watchpoints, call stack and exception analysis in the correct user/session.
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
02Animated investigation walkthrough
Choose any step or play the trace. The highlighted evidence and explanation change for this exact chapter. This is a teaching simulation, not a SAP GUI recording.
Active diagnostic action
Activate the class in a permitted ADT development package; execute an ABAP Unit or class-run fixture with DEMO-77.
The debugger stops where a non-existent internal-table row is dereferenced.
Check alternative: A missing key in a table expression raises the exception.
Complete six-step runbook for this chapter
- 01 Scope.Activate the class in a permitted ADT development package; execute an ABAP Unit or class-run fixture with DEMO-77.
- 02 Find source.Set a breakpoint at the table expression, and optionally a CX_SY_ITAB_LINE_NOT_FOUND exception breakpoint.
- 03 Inspect.Observe the Variables view and the exact key values. Confirm the key is missing from MT_ORDERS.
- 04 Test cause.Inspect the call stack to identify the caller contract: does missing order mean normal absence or a real invariant violation?
- 05 Correct safely.Implement an explicit OPTIONAL/line_exists-style branch or documented exception mapping, not a blanket CATCH of every error.
- 06 Verify.Run positive, missing-key and authorization-scope tests; inspect final caller response and deactivate diagnostic breakpoints.
03Read the three decisive observations
- 1.The debugger stops where a non-existent internal-table row is dereferenced.
- 2.The class is running the activated source; the test input and table rows are visible.
- 3.The final error should be a documented not-found/business response rather than an unhandled runtime termination.
04Safe handoff and completion criteria
ABAP Cloud development must use released APIs and an authorized development tenant. Do not expose internal values in HTTP errors or bypass DCL.
- Positive case.Known key DEMO-10 returns its expected value and keeps normal behavior.
- Negative case.Unknown key DEMO-77 returns a controlled not-found outcome without a short dump.
- Cross-process check.An unauthorized key is not disclosed through the error or through the query fallback.
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.