VSCode: add a new "Pre-Debug" task and run it before debugging session

This commit is contained in:
Ivan Kravets
2018-01-30 21:33:56 +02:00
parent 4980d3e4bb
commit 1890162f3f
2 changed files with 5 additions and 3 deletions

View File

@ -5,11 +5,13 @@
{ {
"type": "gdb", "type": "gdb",
"request": "launch", "request": "launch",
"cwd": "${workspaceRoot}", "cwd": "${workspaceFolder}",
"name": "PlatformIO Debugger", "name": "PlatformIO Debugger",
"target": "{{prog_path.replace('\\\\', '/').replace('\\', '/').replace('"', '\\"')}}", "target": "{{prog_path.replace('\\\\', '/').replace('\\', '/').replace('"', '\\"')}}",
"gdbpath": "{{join(dirname(platformio_path), "piodebuggdb").replace('\\\\', '/').replace('\\', '/').replace('"', '\\"')}}", "gdbpath": "{{join(dirname(platformio_path), "piodebuggdb").replace('\\\\', '/').replace('\\', '/').replace('"', '\\"')}}",
"autorun": [ "source .pioinit" ] "autorun": [ "source .pioinit" ],
"preLaunchTask": "PlatformIO: Pre-Debug",
"internalConsoleOptions": "openOnSessionStart"
} }
] ]
} }

View File

@ -23,7 +23,7 @@ from platformio.managers.package import PackageManager
CORE_PACKAGES = { CORE_PACKAGES = {
"contrib-piohome": ">=0.6.1,<2", "contrib-piohome": ">=0.6.1,<2",
"contrib-pysite": ">=0.1.2,<2", "contrib-pysite": ">=0.1.2,<2",
"tool-pioplus": ">=0.13.3,<2", "tool-pioplus": ">=0.13.5,<2",
"tool-unity": "~1.20302.1", "tool-unity": "~1.20302.1",
"tool-scons": "~2.20501.3" "tool-scons": "~2.20501.3"
} }