Data Breakpoints in Visual Studio Code
summary
Demo uses a simple Fibonacci program that prints the first 15 terms and shows three concrete breakpoint types in VS Code when debugging with GDB: a line breakpoint, a conditional breakpoint that stops when i == 5, and a data breakpoint on nextTerm (4 bytes) which pauses whenever that memory changes. A data breakpoint on unchanged n does not fire. Attempting a data breakpoint on string MSG (32 bytes) fails with "Value does not fall within the expected range parameter size", due to hardware register limits. Use a backtick to run GDB commands like info breakpoints in the debug console.
AI-written summary · about
chapters (9)
- 0:00Intro
- 0:26Breakpoints
- 2:20Types
- 2:55Variables
- 4:14Data Breakpoints
- 4:37Disable Data Breakpoints
- 5:00Data Breakpoints Limitations
- 5:53Debugging Errors
- 6:36Debugging with GDB
related talks
15mGive me 15 minutes & I'll change your view of GDB
07mGetting Started with Debugging C++ in Visual Studio
01h 26mBoost your C/C++ Developer's Debugging Powers with GDB
01h 27mBecome a GDB Power User
20mHow Debuggers Work
52mGetting the Most Out of GDB
01h 29mModern Linux C++ Debugging Tools - Under the Covers
29mLiberating the Debugging Experience with the GDB Python API
