Re:How to build highly-debuggable C++ binaries
by self_awareness on Tuesday July 30, 2024 @03:28AM
(#41106848)
> I’m surprised it requires so much effort. On Windows you pretty just need to make a debug build and... that’s it!
Well, except the Debug build in MSVC doesn't do half of the things from
this list. Also, the list tells you how to use the compilation driver
directly, so when comparing stuff, you would need to use the "cl.exe"
compiler. For a "default" debugging experience it's enough to use
CMake's Debug build type. It even has a built-in "release with debug
info" build type.
Well, except the Debug build in MSVC doesn't do half of the things from this list. Also, the list tells you how to use the compilation driver directly, so when comparing stuff, you would need to use the "cl.exe" compiler. For a "default" debugging experience it's enough to use CMake's Debug build type. It even has a built-in "release with debug info" build type.