Files
RaspberryPi_app/.vscode/launch.json

76 lines
2.4 KiB
JSON

{
"version": "0.2.0",
"configurations": [
{
"name": "Debug on ARM",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/${input:project_name}",
"preLaunchTask": "Deploy and Start GDB Server",
"cwd": "${workspaceFolder}",
"MIMode": "gdb",
"externalConsole": false,
"logging": {
"engineLogging": false
},
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"stopAtEntry": true,
"miDebuggerServerAddress": "${input:target_ip}:2345",
"miDebuggerPath": "${input:buildroot_path}/output/host/bin/arm-linux-gdb",
"targetArchitecture": "arm"
}
],
"inputs": [
{
"id": "target_ip",
"type": "command",
"command": "shellCommand.execute",
"args": {
"command": ". ${workspaceFolder}/.env && echo $TARGET_IP",
"useFirstResult": true
}
},
{
"id": "target_user",
"type": "command",
"command": "shellCommand.execute",
"args": {
"command": ". ${workspaceFolder}/.env && echo $TARGET_USER",
"useFirstResult": true
}
},
{
"id": "target_dir",
"type": "command",
"command": "shellCommand.execute",
"args": {
"command": ". ${workspaceFolder}/.env && echo $TARGET_DIR",
"useFirstResult": true
}
},
{
"id": "buildroot_path",
"type": "command",
"command": "shellCommand.execute",
"args": {
"command": ". ${workspaceFolder}/.env && echo $BUILDROOT_PATH",
"useFirstResult": true
}
},
{
"id": "project_name",
"type": "command",
"command": "shellCommand.execute",
"args": {
"command": ". ${workspaceFolder}/.env && echo $PROJECT_NAME",
"useFirstResult": true
}
}
]
}