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.

[env]
platform = espressif32
framework = arduino, espidf
monitor_speed = 115200

[env:esp-wrover-kit]
board = esp-wrover-kit
build_type = debug
build_flags = 
	-D LV_DRAW_COMPLEX
	-D LV_USE_BUILTIN_MEMCPY=1
	-D CONFIG_LV_USE_DRAW_MASKS=1
	-D CONFIG_LV_USE_DRAW_SW=1
	-D CONFIG_LV_USE_BUILTIN_MALLOC=1
	-D LV_HOR_RES_MAX=320
	-D LV_VER_RES_MAX=240
	-D SPI_HOST_MAX=3
	-D CONFIG_LCD_TYPE_ILI9341
lib_deps = bodmer/TFT_eSPI@^2.4.78

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