Page 1 of 1

Debug connection through JTAG not always working in VSCode

Posted: Thu Jun 06, 2024 1:52 pm
by vazquezfran
Hello,
I am working with a DevKit "esp32-c6-devkitc-1_v1.2" and I have installed in my PC the ESP-IDF v5.2.2 using the VSCode application to run it. Everything is set-up as default and I am working just with the "blink" example... I have also installed the drivers described in the "https://docs.espressif.com/projects/esp ... -jtag.html" page.

Connecting using the USB/JTAG connection, the "Flash" and "Monitor" options work perfectly. However for the debugging I have to try the "Launch" in VSCode around 5-8 times to manage to connect. Every time if fails it shows the "Failed to init Debug Adapter!" message.

Is there any idea why this is happening? Any help would be greatly appreciated.

Thanks!

Re: Debug connection through JTAG not always working in VSCode

Posted: Fri Jun 07, 2024 8:11 am
by ESP_bignacio
Hi !

We implemented a new debug adapter which is currently in GitHub master. You can try by installing this vsix installer: https://nightly.link/espressif/vscode-e ... n.vsix.zip

We also updated the debug tutorials documentation in here: https://github.com/espressif/vscode-esp ... bugging.md

Please give it a try and let us know how it goes.

Re: Debug connection through JTAG not always working in VSCode

Posted: Fri Jun 07, 2024 10:24 am
by vazquezfran
Hello,

I was initially trying to debug using the "type: "espidf" configuration to launch. After installing your Debug Adapter and changing to the "gdbtarget" type recommended in the "https://github.com/espressif/vscode-esp ... BUGGING.md" guide, I managed to debug without issues. I have one question then, is the "espidf" lauch type recommended to be used? or should we avoid using it?

Thanks for the help!

Re: Debug connection through JTAG not always working in VSCode

Posted: Thu Jun 13, 2024 3:45 am
by ESP_bignacio
We are deprecating espidf target in favor of gdbtarget. In the future we will remove it entirely.