Hi,
I’m using Linux openSuse Leap15, Visual Studio Code 1.24.1 with PlatformIO IDE 1.3.1 PIO plus v1.4.10, platform: nordicnrf52; board: redbear_blenano2; framework: mbed
I have found out that local variable display during debugging is possible when adding to both files:
$HOME/.platformio/packages/framework-mbed/platformio/variants/RBLAB_BLENANO2/RBLAB_BLENANO2.json
$HOME/.platformio/packages/framework-mbed/platformio/variants/NRF52_DK/NRF52_DK.json
these lines
In section common:
“-Os”,
“-DNDEBUG”,
“-O0”,
“-g3”,
“-ggdb”,
Now my question:
With the options above each compile has -g3 etc, but for production I don’t want these debugging symbols.
How can I configure that "PlatformIO Build"
does not use it, and that "PlatformIO Pre-Debug"
uses them?
Thank
Marcel