1
0
mirror of synced 2024-06-09 22:19:59 +02:00
modern-cmake/chapters/features/debug.md
Henry Fredrick Schreiner f09ca2ca8b Adding catch and some fixes
2018-03-30 15:15:37 +02:00

7 lines
431 B
Markdown

# Debugger support
## Building in debug mode
For single-configuration generators, you can build your code with `-DCMAKE_BUILD_TYPE=Debug` to get debugging flags. In multi-configuration generators, like many IDEs, you can pick the configuration in the IDE. There are distinct flags for this mode (variables ending in `_DEBUG` as opposed to `_RELEASE`), as well as a generator expression value `CONFIG:Debug` or `CONFIG:Release`.