Generate a working "projectEnvName" for PlatformIO IDE's debugger for VSCode

This commit is contained in:
Ivan Kravets committed 2020-10-31 19:07:04 +02:00
1 parent 7033c2616b
commit 2e66c5f807
2 files changed
+8 -1

No files matched your search

+3 -1
View File
@@ -19,13 +19,14 @@
"request": "launch",
"name": "PIO Debug",
"executable": "{{ _escape_path(prog_path) }}",
"projectEnvName": "{{ env_name }}",
"toolchainBinDir": "{{ _escape_path(dirname(gdb_path)) }}",
% if svd_path:
"svdPath": "{{ _escape_path(svd_path) }}",
% end
"preLaunchTask": {
"type": "PlatformIO",
"task": "Pre-Debug"
"task": "Pre-Debug ({{ env_name }})"
},
"internalConsoleOptions": "openOnSessionStart"
},
@@ -34,6 +35,7 @@
"request": "launch",
"name": "PIO Debug (skip Pre-Debug)",
"executable": "{{ _escape_path(prog_path) }}",
"projectEnvName": "{{ env_name }}",
"toolchainBinDir": "{{ _escape_path(dirname(gdb_path)) }}",
% if svd_path:
"svdPath": "{{ _escape_path(svd_path) }}",