Concept Flow - Breakpoint and watchpoint hardware
Program Running
CPU Executes Instruction
Check Breakpoint?
No→Continue Execution
Yes
Pause Execution
Debugger Handles Breakpoint
Resume or Step Execution
Memory Access
Check Watchpoint?
No→Continue Execution
Yes
Pause Execution
Debugger Handles Watchpoint
Resume or Step Execution
The CPU runs instructions and checks if a breakpoint or watchpoint is hit. If yes, it pauses and lets the debugger handle it before resuming.
