| Syntax: | Default: |
| gen(debug[, yes]) gen(debug, no) |
gen(debug, no) |
This option determines whether the C compiler generates information for debugging. To debug code generated from C source, you must use a traditional debugger, which requires that line number and other information be included in the executable image.
By default, the C compiler does not generate debug information.
This option is implictly set to no by file(genObject, no).
To produce an executable, DLL or shared library with debug information, you also need to set the link(debug[, yes]) option for the target.
To make full use of the debugger, do not use this option together with opt(level, level) when level has a non-zero value. The compiler produces debugging information as if the code is not optimized, and may produce symbol and type information that is not accurate.
For limited debugging, gen(lineOnlyDebug) encodes line numbers in the code but not does not provide full debug information.
Code
generated from C++ source is always enabled for debugging.
![]()
Incremental C++ Build
C Compilation
Configuration Files
![]()
Sections and Segments
Debugging with
VisualAge C++
![]()
Set Build Options
Build
Debug Optimized
Code
![]()
Code Generation Options
![]()
Code Generation Options
