Use CC location for resolving toolchain path in VSCode template

VSCode uses the "packagetoolchainBinDir" option to find the objdump
binary and if GDB is shipped separately from the toolchain package then
VSCode will fail to launch a debug session due to missing objdump
This commit is contained in:
valeros
2023-08-14 15:57:00 +03:00
parent 7e89e551ae
commit 2ee8214485
2 changed files with 3 additions and 1 deletions

View File

@ -20,6 +20,8 @@ test-driven methodologies, and modern toolchains for unrivaled success.
6.1.11 (2023-??-??)
~~~~~~~~~~~~~~~~~~~
* Resolved a possible issue that may cause generated projects for `PlatformIO IDE for VSCode <https://docs.platformio.org/en/latest/integration/ide/vscode.html>`__ to fail to launch a debug session because of a missing objdump binary when GDB is not part of the toolchain package
6.1.10 (2023-08-11)
~~~~~~~~~~~~~~~~~~~

View File

@ -17,7 +17,7 @@
% "name": "PIO Debug (skip Pre-Debug)",
% "executable": _escape_path(prog_path),
% "projectEnvName": env_name if forced_env_name else default_debug_env_name,
% "toolchainBinDir": _escape_path(os.path.dirname(gdb_path)),
% "toolchainBinDir": _escape_path(os.path.dirname(cc_path)),
% "internalConsoleOptions": "openOnSessionStart",
% }
%