PlatformIO Community

Any tips to reduce debugging time?

When debugging or building after modifying the source file, the antivirus program is turned off completely. But it only saves about 30-40% of the time and it still takes a few minutes. I don’t know how platformio users are going through this painful debugging time. If you have any tips to reduce debugging or build time, I’d really appreciate it.

Have build_type = debug in the platformio.ini and don’t change the platformio.ini between debugging steps. That way the project is only built in debug mode (and not intermittently in release mode) and the project should not be rebuilt completely.

1 Like

Could you share your platformio.ini?

I added build_type = debug in my platformio.ini.
If there was a build error, I repeated the task of adding a macro to platformio.ini and then rebuilding it. Each time the whole was built, it took a lot of time and was painful. Modifying or adding something to platformio.ini seems to be prudent.

platform = espressif32
framework = arduino, espidf
monitor_speed = 115200

board = esp-wrover-kit
build_type = debug
build_flags = 
lib_deps = bodmer/TFT_eSPI@^2.4.78

Yes, any change to the platformio.ini will cause a full rebuild.