debug_build_flagsΒΆ

Type: String | Multiple: Yes | Default: -Og -g2 -ggdb2

These flags/options affect the preprocessing, compilation, assembly and linking processes for C and C++ code.

Note

This option might be helpful to adjust the optimization level if firmware with debug information is too big to be uploaded to a target

Example

[env:debug]
platform = ...
board = ...

; Set optimization level and amount of debug information generated by the compiler
debug_build_flags = -O0 -ggdb3 -g3

Other possible flags that might be useful for debugging your application.