Debug Mode not Working Esp32

Hi everyone,

The title speaks for itself, I have a custom esp32s3-wroom board that I can easily upload on. But lately I’ve tried to use the platform Io debug option and it doesn’t work.

Please fin my platform.ini file, and the debug error:

I’ve already tried many solution found online but for the moment nothing works, :sweat_smile:

undefinedC:\Users\n.grauer.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\n.grauer\OneDrive - VIMS\Documents\PlatformIO\Projects\MicroC-V0.pio\build\esp32-s3-devkitc-1\firmware.elf…
PlatformIO Unified Debugger → Redirecting...
PlatformIO: debug_tool = esp-builtin
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
OpenOCD: Bug Reporting
Info : only one transport option; autoselect ‘jtag’
Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1001
Info : esp_usb_jtag: capabilities descriptor set to 0x2000
adapter speed: 40000 kHz

Warn : Transport “jtag” was already selected
adapter speed: 12000 kHz

Info : tcl server disabled
Info : telnet server disabled
Error: libusb_open() failed with LIBUSB_ERROR_NOT_FOUND
Error: esp_usb_jtag: could not find or open device!

.pioinit:11: Error in sourced command file:
Remote communication error. Target disconnected.: Success.

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
lib_deps = 
	bblanchon/ArduinoJson@^6.21.4
	arkhipenko/TaskScheduler@^3.7.0
	throwtheswitch/Unity@^2.5.2
build_flags = 
	-D _TASK_STATUS_REQUEST
	-D _TASK_PRIORITY
	-D _TASK_TIMEOUT
	-DARDUINO_USB_MODE=1
	;-DARDUINO_USB_CDC_ON_BOOT=1
monitor_speed = 115200
test_build_src = yes
monitor_filters  = esp32_exception_decoder
debug_tool = esp-builtin
build_type = debug
debug_speed = 12000
debug_init_break = tbreak setup