forked from platformio/platformio-core
Generate beta configuration for the new PIO Debugger for VSCode
This commit is contained in:
@ -1,4 +1,16 @@
|
|||||||
|
// AUTOMATICALLY GENERATED FILE. PLEASE DO NOT MODIFY IT MANUALLY
|
||||||
|
|
||||||
|
// PIO Unified Debugger
|
||||||
|
//
|
||||||
|
// http://docs.platformio.org/page/plus/debugging.html
|
||||||
|
// http://docs.platformio.org/page/section_env_debug.html#projectconf-debug-tool
|
||||||
|
|
||||||
% from os.path import dirname, join
|
% from os.path import dirname, join
|
||||||
|
%
|
||||||
|
% def _escape_path(path):
|
||||||
|
% return path.replace('\\\\', '/').replace('\\', '/').replace('"', '\\"')
|
||||||
|
% end
|
||||||
|
%
|
||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
@ -7,11 +19,28 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"cwd": "${workspaceRoot}",
|
"cwd": "${workspaceRoot}",
|
||||||
"name": "PlatformIO Debugger",
|
"name": "PlatformIO Debugger",
|
||||||
"target": "{{prog_path.replace('\\\\', '/').replace('\\', '/').replace('"', '\\"')}}",
|
"target": "{{ _escape_path(prog_path) }}",
|
||||||
"gdbpath": "{{join(dirname(platformio_path), "piodebuggdb").replace('\\\\', '/').replace('\\', '/').replace('"', '\\"')}}",
|
"gdbpath": "{{ _escape_path(join(dirname(platformio_path), "piodebuggdb")) }}",
|
||||||
"autorun": [ "source .pioinit" ],
|
"autorun": [ "source .pioinit" ],
|
||||||
"preLaunchTask": "PlatformIO: Pre-Debug",
|
"preLaunchTask": "PlatformIO: Pre-Debug",
|
||||||
"internalConsoleOptions": "openOnSessionStart"
|
"internalConsoleOptions": "openOnSessionStart"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "platformio-debug",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "PlatformIO Debugger (Beta)",
|
||||||
|
"executable": "{{ _escape_path(prog_path) }}",
|
||||||
|
"toolchainBinDir": "{{ _escape_path(dirname(gdb_path)) }}",
|
||||||
|
"preLaunchTask": "PlatformIO: Pre-Debug",
|
||||||
|
"internalConsoleOptions": "openOnSessionStart"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "platformio-debug",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "PlatformIO Debugger (Beta) (Quick)",
|
||||||
|
"executable": "{{ _escape_path(prog_path) }}",
|
||||||
|
"toolchainBinDir": "{{ _escape_path(dirname(gdb_path)) }}",
|
||||||
|
"internalConsoleOptions": "openOnSessionStart"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Reference in New Issue
Block a user