Debugging nrf52830 with local variable display


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:


these lines

In section common:

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?


This issue was fixed in the latest PIO Core. See