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

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

View File

@ -8,6 +8,11 @@ PlatformIO Core 5
**A professional collaborative platform for embedded development**
5.0.3 (2020-??-??)
~~~~~~~~~~~~~~~~~~
* Generate a working "projectEnvName" for PlatformIO IDE's debugger for VSCode
5.0.2 (2020-10-30)
~~~~~~~~~~~~~~~~~~

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) }}",