Watchpoints, Layers and ATC
Advanced techniques for hard-to-catch bugs.
Explanation
Watchpoints break when a specified variable changes value โ invaluable when data is corrupted somewhere unknown. Layer-aware debugging lets you step over framework code and focus on business logic. ATC (ABAP Test Cockpit) is not a debugger but often catches issues before they reach runtime.
Code example
" Set condition on watchpoint in New Debugger UI" e.g. lv_amount > 1000Real project scenario
A wrong tax rate appeared only on Fridays. A conditional watchpoint on the rate field caught the wrong function-module call the first time.
Common mistakes
Setting watchpoints on structures instead of specific fields; running debugger without disabling authorisation checks โ traces get muddled.
Best practices
Reproduce โ simplify โ watchpoint the smallest failing value; complement debugger with ST22 stack traces and ST05 for DB context.
Interview angle
How do you analyse a short dump without reproducing it?