SAP / SAP Beginner (0 to 2 yrs) Interview questions
What is the difference between a session breakpoint and a watchpoint?
A session breakpoint pauses execution at a specific line, the same way a static breakpoint does, but it's set externally (by clicking in the editor/debugger) rather than written into the code, and it only applies to your current debugging session — it doesn't affect other users and disappears when your session ends. A watchpoint is different in kind: instead of pausing at a fixed line, it pauses execution whenever a specific variable's value actually changes, wherever in the program that happens to occur.
| Session Breakpoint | Watchpoint |
| Triggers when execution reaches a specific line. | Triggers when a specific variable's value changes, anywhere. |
| Set at a fixed location in the code. | Tracks a variable across the whole program's execution. |
Watchpoints are especially useful when you know what value is wrong but not where in a large program it's being incorrectly set — rather than guessing which line to break at, you watch the variable itself and let the debugger find the moment it changes.
More Related questions...