-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add deploySteps and variables to cppdbg #9418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
In this PR, could you provide an example |
Sample launch.json: {
"version": "0.2.0",
"configurations": [
{
"name": "Debug Pi1",
"type": "cppdbg",
"request": "launch",
"variables": {
"user": "pi",
"host": "${input:targetIP}",
"port": "22100",
"program": "${command:cmake.launchTargetPath}",
"targetDir": "/home/pi",
"targetFilePath": "${targetDir}/${command:cmake.launchTargetFilename}"
},
"cwd": "${workspaceFolder}",
"program": "${program}",
"stopAtEntry": true,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb-multiarch",
"miDebuggerServerAddress": "${host}:${port}",
"deploySteps": [
{
"type": "scp",
"files": "${program}",
"host": {
"user": "${user}",
"hostName": "${host}"
},
"targetDir": "${targetDir}"
},
{
"type": "ssh",
"host": {
"user": "${user}",
"hostName": "${host}"
},
"command": "chmod +x ${targetFilePath}",
},
{
"type": "ssh",
"host": {
"user": "${user}",
"hostName": "${host}"
},
"command": "gdbserver :${port} ${targetFilePath}",
"continueOn": "Listening on port",
"debug": true
},
{
"type": "ssh",
"host": {
"user": "${user}",
"hostName": "${host}"
},
"command": "${targetFilePath}",
"debug": false
}
],
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
],
"inputs": [
{
"type": "promptString",
"id": "targetIP",
"description": "Enter the IP address of the target device"
}
]
} Stepps:
|
…de-cpptools into dev/xisui/deploy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This reverts commit b55a98c.
This reverts commit b55a98c.
This reverts commit 8914e28.
Add deploySteps and variables to cppdbg. Spec available upon request.
There will be follow up PRs, which implement deploy in multiroot scenarios, and process picker for gdb extended-remote, separately.