Episode

C++ Debugging Tips and Tricks

In this episode, Robert is joined by Andrew Hall, who shows a number of cool debugging tips and tricks for C++ developers. More specifically, he shows:

  • Configuring launch options from project properties (command line arguments and setting environment variables) [01:25]
  • Seeing function return values [02:34]
  • Set next statement [03:16]
  • Step into specific [04:07]
  • Run to cursor [05:05]
  • Edit and Continue (including x64 support) [06:57]
  • Exception Settings [08:31]
  • Conditional, Hit Count, and Filter Breakpoints [13:44]
  • Pinning DataTips [19:17]
  • Parallel Stacks window [19:42]
  • Show External Code [20:30]
  • Parallel Watch window [22:00]
  • Freeze and Thaw threads [23:13]
  • Flag Threads and Run Flagged Threads to Cursor [24:18]
  • Show Threads in source [26:13]
  • Debug Location toolbar [28:09]
  • Debugging Heap Corruption with Page Heap [29:43]
  • PerfTips [33:32]
  • Integrated CPU profiling [35:53]
  • Integrated Memory Profiling [38:01]
  • Natvis [41:03]
  • Showing what source code causes an Access Violation [42:43]

Have feedback? Submit an issue here.