Marlin/buildroot/share/PlatformIO/debugging/launch.json

51 lines
2.1 KiB
JSON
Raw Normal View History

2021-10-31 04:43:19 +00:00
/**
* Remote debugging on STM32 using the "Cortex Debug" extension.
*
* Copy one or more of the configurations items below into .vscode/launch.json
* to add those debug options to the PlatformIO IDE "Run & Debug" panel.
*
* Examples for BigTreeTech SKR 2 (USB) and Native Simulator. Modify for your own build.
*
* NOTE: The PlatformIO extension will remove items when regenerating launch.json.
*/
{
"version": "0.2.0",
"configurations": [
{
2022-05-08 04:51:38 +00:00
"name": "Debug STM32 (ST-Link)",
2021-10-31 04:43:19 +00:00
"request": "launch",
"type": "cortex-debug",
"servertype": "openocd",
"cwd": "${workspaceRoot}",
"showDevDebugOutput": false,
"configFiles": [ "interface/stlink.cfg", "target/stm32f4x.cfg" ],
2022-05-08 04:51:38 +00:00
"device": "stlink",
"executable": "${workspaceRoot}/.pio/build/BIGTREE_SKR_2_USB_debug/firmware.elf",
"openOCDLaunchCommands": [ "init", "reset init" ],
"svdFile": "${env:HOME}/.platformio/platforms/ststm32@12.1.1/misc/svd/STM32F40x.svd",
2021-10-31 04:43:19 +00:00
},
{
2022-07-11 03:00:10 +00:00
"name": "Launch Sim (ggdb)",
2021-10-31 04:43:19 +00:00
"request": "launch",
"type": "cppdbg",
"cwd": "${workspaceRoot}",
2022-07-12 18:25:36 +00:00
"program": "${workspaceRoot}/.pio/build/simulator_macos_debug/debug/MarlinSimulator",
//"program": "${workspaceRoot}/.pio/build/simulator_linux_debug/MarlinSimulator",
//"program": "${workspaceRoot}/.pio/build/simulator_windows/MarlinSimulator",
2021-10-31 04:43:19 +00:00
"miDebuggerPath": "/opt/local/bin/ggdb",
"MIMode": "gdb"
2022-07-11 03:00:10 +00:00
},
{
"name": "Launch Sim (lldb)",
"request": "launch",
"type": "cppdbg",
"cwd": "${workspaceRoot}",
2022-07-12 18:25:36 +00:00
"program": "${workspaceRoot}/.pio/build/simulator_macos_debug/debug/MarlinSimulator",
//"program": "${workspaceRoot}/.pio/build/simulator_linux_debug/MarlinSimulator",
//"program": "${workspaceRoot}/.pio/build/simulator_windows/MarlinSimulator",
2022-07-11 03:00:10 +00:00
//"targetArchitecture": "arm64",
"MIMode": "lldb"
2021-10-31 04:43:19 +00:00
}
]
}