Skip to content

Commit 2ee8214

Browse files
committed
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
1 parent 7e89e55 commit 2ee8214

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

HISTORY.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ test-driven methodologies, and modern toolchains for unrivaled success.
2020
6.1.11 (2023-??-??)
2121
~~~~~~~~~~~~~~~~~~~
2222

23+
* 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
24+
2325
6.1.10 (2023-08-11)
2426
~~~~~~~~~~~~~~~~~~~
2527

platformio/project/integration/tpls/vscode/.vscode/launch.json.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
% "name": "PIO Debug (skip Pre-Debug)",
1818
% "executable": _escape_path(prog_path),
1919
% "projectEnvName": env_name if forced_env_name else default_debug_env_name,
20-
% "toolchainBinDir": _escape_path(os.path.dirname(gdb_path)),
20+
% "toolchainBinDir": _escape_path(os.path.dirname(cc_path)),
2121
% "internalConsoleOptions": "openOnSessionStart",
2222
% }
2323
%

0 commit comments

Comments
 (0)