VSCODE-Extension: Debug not working, idf: custom extra paths not recognized
Posted: Tue Jun 23, 2020 2:45 pm
I am using VSCODE 1.46.1 (User) with ESP-IDF VSCode Extension 0.3.0 (full install including ONBOARDING with all IDF downloads), ESP-IDF v.4.0.1, on Windows 10 Pro, latest updates. I can compile, build, flash, monitor, but I can not debug (get startet: blink.exe) with Wrover Kit V4.1.
I store the IDF config in Workspace context.
I can start openocd server.
With the original launch.json nothing happend with F5 (Start debugging).
As told in https://github.com/espressif/vscode-esp ... BUGGING.md I exchanged the launch.json to the sencond version (for C/C++-Debugging).
When I start F5, GDB seems to be launched, but there is an error message "xtensa-esp32-elf-gdb is not found in idf.customExtraPaths".
But the extra Paths in IDF extension settings are ok:
"C:\Users\user\espressif\tools\xtensa-esp32-elf\esp-2019r2-8.2.0\xtensa-esp32-elf\bin;C:\Users\user\espressif\tools\esp32ulp-elf\2.28.51.20170517\esp32ulp-elf-binutils\bin;C:\Users\user\espressif\tools\cmake\3.13.4\bin;C:\Users\user\espressif\tools\openocd-esp32\v0.10.0-esp32-20190313\openocd-esp32\bin;C:\Users\user\espressif\tools\mconf\v4.6.0.0-idf-20190628;C:\Users\user\espressif\tools\ninja\1.9.0;C:\Users\user\espressif\tools\idf-exe\1.0.1;C:\Users\user\espressif\tools\ccache\3.7"
The Extra Vars are set to:
{"OPENOCD_SCRIPTS":"C:\Users\user\espressif\tools\openocd-esp32\v0.10.0-esp32-20190313\openocd-esp32\share\openocd"}
I tried the unboarding again, everything is fine, but the error persists.
For some reason the ExtraPaths are not evaluated. Such debugging is impossible.
What can I do or try?
I store the IDF config in Workspace context.
I can start openocd server.
With the original launch.json nothing happend with F5 (Start debugging).
As told in https://github.com/espressif/vscode-esp ... BUGGING.md I exchanged the launch.json to the sencond version (for C/C++-Debugging).
When I start F5, GDB seems to be launched, but there is an error message "xtensa-esp32-elf-gdb is not found in idf.customExtraPaths".
But the extra Paths in IDF extension settings are ok:
"C:\Users\user\espressif\tools\xtensa-esp32-elf\esp-2019r2-8.2.0\xtensa-esp32-elf\bin;C:\Users\user\espressif\tools\esp32ulp-elf\2.28.51.20170517\esp32ulp-elf-binutils\bin;C:\Users\user\espressif\tools\cmake\3.13.4\bin;C:\Users\user\espressif\tools\openocd-esp32\v0.10.0-esp32-20190313\openocd-esp32\bin;C:\Users\user\espressif\tools\mconf\v4.6.0.0-idf-20190628;C:\Users\user\espressif\tools\ninja\1.9.0;C:\Users\user\espressif\tools\idf-exe\1.0.1;C:\Users\user\espressif\tools\ccache\3.7"
The Extra Vars are set to:
{"OPENOCD_SCRIPTS":"C:\Users\user\espressif\tools\openocd-esp32\v0.10.0-esp32-20190313\openocd-esp32\share\openocd"}
I tried the unboarding again, everything is fine, but the error persists.
For some reason the ExtraPaths are not evaluated. Such debugging is impossible.
What can I do or try?