Add 'example' allowing simple command-line attachment

This commit is contained in:
Ben Jackson 2020-01-17 17:50:54 +00:00
commit 018ae05de8
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{
"configurations": {
"C++ - Attach Local Process": {
"adapter": "vscode-cpptools",
"variables": {
"PID": {
"shell": [ "GetPIDForProcess", "${processName}" ]
}
},
"configuration": {
"name": "test",
"request": "attach",
"program": "${binary}",
"processId": "${PID}",
"type": "cppdbg",
"stopAtEntry": true,
"setupCommands": [
{ "text": "source ${initFile}", "ignoreFailures": true }
]
}
}
}
}