~/talk

Data Breakpoints in Visual Studio Code

Talkat Pure Virtual C++ 2022 · on Tuesday, 2022-04-26· [c-and-cpp]
links:none on file
slides:none on file

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

  1. 0:00Intro
  2. 0:26Breakpoints
  3. 2:20Types
  4. 2:55Variables
  5. 4:14Data Breakpoints
  6. 4:37Disable Data Breakpoints
  7. 5:00Data Breakpoints Limitations
  8. 5:53Debugging Errors
  9. 6:36Debugging with GDB
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.