Pro lesson · Preview
Breakpoints & Watchpoints
Stop on a line vs stop on a data change: software vs hardware breakpoints (and why flash execution forces the limited hardware kind), and watchpoints, the tool for catching memory corruption.
22 min read
This lesson is part of Pro
Upgrade to unlock the full lesson and the complete interview Q&A.
Unlock with Pro5 interview questions on this topic
Each one opens a full worked answer.
What's the difference between a breakpoint and a watchpoint?What's the difference between software and hardware breakpoints, and why does it matter on embedded?How would you find what's corrupting a global variable?Why might GDB refuse to set another breakpoint on an embedded target?What is a conditional breakpoint and what's the catch on embedded?
This is just the start
Sign up free to track your progress through this course, mark lessons complete, and work through the full interview Q&A.
More in Debugging & Toolchain
The ToolchainThe Build Process & MakefilesLinker Scripts & Memory Sections
Debugging with GDB
On-Chip Debugging: JTAG & SWD
Logic Analyzer & Oscilloscope