mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
VSCode: add a new "Pre-Debug" task and run it before debugging session
This commit is contained in:
@ -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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -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"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user