ESP32-S3 Debugger not Working

Hello, I’m trying to use the debugger with an ESP32-S3 in VSCode.

However, when I try to start it I am immediately met with an error and a pop up asking to open a “launch.json” file.

This is what the debug console meets me with.

undefinedC:\Users\n\.platformio\packages\toolchain-xtensa-esp32s3\bin\xtensa-esp32s3-elf-gdb.exe: warning: Couldn't determine a path for the index cache directory.

Reading symbols from c:\Users\nhoong\Documents\Test Project\.pio\build\adafruit_feather_esp32s3_tft\firmware.elf...
PlatformIO Unified Debugger ->
PlatformIO: debug_tool = cmsis-dap
PlatformIO: Initializing remote target...
Open On-Chip Debugger  v0.11.0-esp32-20220706 (2022-07-06-15:48)
Licensed under GNU GPL v2
For bug reports, read
adapter speed: 5000 kHz

Is there something that I am missing setup wise?

Well if you don’t have a CMSIS-DAP debugging probe connected to the ESP32-S3 then that won’t work.

The ESP32-S3 has built-in JTAG debugging hardware though. You have to configure the platformio.ini of the project accordingly in regards to the debug_tool, as documented, with debug_tool = esp-builtin, and as discussed e.g. here.