I opened up a test project and followed instructions on the esp32 site with idf.py monito r to get the gdbstub set up. To do this I set the following in menuconfig: ESP_SYSTEM_GDBSTUB_RUNTIME . I then ran the monitor command and, as documented, used Ctrl C to interrup the ESP32. It worked and I was able to set breakpoints, continue and pause execution which is fantastic!
I then went over to an old platformIO project which is very large.
`[build_type_flags] debug_flags = -D${compile_option_flags.debug} -O0 ; Turn off optimisations -g3 ; All debug information ... [env:dev] build_type = debug build_flags = ${common.build_flags} ${build_type_flags.debug_flags}
This is an extract from that set up.…