Fatal errors of the ESP32
Stopping the ESP32 resetting immediately when it has a segmentation fault etc
In menuconfig (setting gear icon in bottom blue bar) set “Panic handler behaviour” to “Print registers and halt”
Breakpointing on panic
If CONFIG_ESP_DEBUG_OCDAWARE is enabled (default=enabled), the panic handler will detect whether a JTAG debugger is connected and if it is execution will be halted and control will be passed to the debugger.