3 ms·
What's the argument for building in debug mode vs specifying -g to the compiler to build with debug symbols? I've previously encountered bugs that stubbornly r
by vitus 6y ago
What's the argument for building in debug mode vs specifying -g to the compiler to build with debug symbols?
I've previously encountered bugs that stubbornly refused to reproduce in a non-optimized build.
One thing that comes to mind is `#ifdef DEBUG`-style macros, although I'm curious if there's anything else I'm missing. Omitted stack frames, e.g. from inlining, perhaps?
- thrwaeasddsaf 6y ago> What's the argument for building in debug mode Sometimes optimized binaries are just a nightmare to debug. Symbols do not help.