Add 'example' allowing simple command-line attachment
This commit is contained in:
parent
74eb94fe53
commit
018ae05de8
2 changed files with 37 additions and 0 deletions
24
support/test/example/cpp.json
Normal file
24
support/test/example/cpp.json
Normal 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 }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue