When GDB tells you "value optimized out" or your breakpoints land on the wrong line, this is what you need. It walks through choosing between -O0, -Og, and -O2 with debug symbols, explains why variables disappear in optimized code and how to work around it, and covers practical techniques like reading inlined frames, using scheduler-locking for multithreaded stepping, and split-DWARF for faster link times. The workflow is organized by problem type rather than tool feature, which makes it easy to jump to the right section when you're stuck. Best for anyone debugging RelWithDebInfo builds or trying to diagnose production crashes where you only have -O2 binaries with debug info.
npx skills add https://github.com/mohitmishra786/low-level-dev-skills --skill debug-optimized-builds