Debugger Visualizers to Make Your Code Accessible
summary
Shows how to write debugger visualizers using Visual Studio Natvis and GDB pretty-printers, with concrete examples: Natvis display strings, array/tree/linklist expansions, custom list items and intrinsics; GDB Python printers with children generators and a GDBinit workflow. Demonstrates boost unordered_map support and an embedded in binary trick (works with recent Boost), warns GDB 14.1 is needed for two-string, and shows VS Code integration so the visualizers actually run and make containers readable.
AI-written summary · about
chapters (15)
- 0:00Introduction to debuggers
- 1:41Debugging without recompiling
- 8:47Making code accessible
- 10:31Setting up NATV
- 13:39NATV type tags
- 21:02NATV display strings
- 24:08NATV expansions
- 29:23NATV intrinsics
- 32:13GDB pretty printers
- 32:55Basic GDB usage
- 35:23GDB init files
- 37:09Writing GDB printers
- 41:43GDB children method
- 48:12GDB in VS Code
- 54:35Conclusion and Q&A
