AN4989 Rev 3
39/118
AN4989
Compiling for debug
117
3.2.3 STM32CubeIDE
Option to manage Debugging Information are in
Properties -> C/C++ Build -> Settings -> Tool Settings -> Debugging.
Figure 23. STM32CubeIDE debug information option
Debug Level can be set among four levels:
•
None: Level 0 produces no debug information at all;
•
Minimal (-g1): Level 1 produces minimal information, enough for making backtraces in
parts of the program for which no debug is planned. This includes descriptions of
functions and external variables, and line number tables, but no information about local
variables.
•
Default (-g): Produce debugging information in the operating system's native format
(stabs, COFF, XCOFF, or DWARF). GDB can work with this debugging information.
•
Maximal (-g3): Level 3 includes extra information, such as all the macro definitions
present in the program. Some debuggers support macro expansion when -g3 is used.
The same pane contains the options to add profiling information.
For further information, refer to
Section 3.1 Option Summary
available at http://gcc.gnu.org.