Udpate remote examples for docker/cpptools
This commit is contained in:
parent
e7fb49f03d
commit
d12c0897f2
1 changed files with 25 additions and 12 deletions
|
|
@ -765,6 +765,8 @@ and have to tell cpptools a few more options.
|
|||
"remote": {
|
||||
"host": "${host}",
|
||||
"account": "${account}",
|
||||
// or, alternatively "container": "${ContainerID}"
|
||||
|
||||
"runCommand": [
|
||||
"gdbserver",
|
||||
"--once",
|
||||
|
|
@ -772,14 +774,19 @@ and have to tell cpptools a few more options.
|
|||
"--disable-randomisation",
|
||||
"0.0.0.0:${port}",
|
||||
"%CMD%"
|
||||
}
|
||||
},
|
||||
"delay": "1000m" // optional
|
||||
},
|
||||
"attach": {
|
||||
"remote": {
|
||||
"host": "${host}",
|
||||
"account": "${account}",
|
||||
// or, alternatively "container": "${ContainerID}"
|
||||
|
||||
"pidCommand": [
|
||||
"/path/to/secret/script/GetPIDForService", "${ServiceName}"
|
||||
// e.g. "/path/to/secret/script/GetPIDForService", "${ServiceName}"
|
||||
// or...
|
||||
"pgrep", "executable"
|
||||
],
|
||||
"attachCommand": [
|
||||
"gdbserver",
|
||||
|
|
@ -796,12 +803,13 @@ and have to tell cpptools a few more options.
|
|||
// application never attaches, try using the following to manually
|
||||
// force the trap signal.
|
||||
//
|
||||
"initCompleteCommand": [
|
||||
"kill",
|
||||
"-TRAP",
|
||||
"%PID%"
|
||||
]
|
||||
}
|
||||
// "initCompleteCommand": [
|
||||
// "kill",
|
||||
// "-TRAP",
|
||||
// "%PID%"
|
||||
// ]
|
||||
},
|
||||
"delay": "1000m" // optional
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -811,22 +819,27 @@ and have to tell cpptools a few more options.
|
|||
"remote-cmdLine": [ "/path/to/the/remote/executable", "args..." ],
|
||||
"remote-request": "launch",
|
||||
"configuration": {
|
||||
"request": "attach", // yes, attach!
|
||||
"request": "launch",
|
||||
|
||||
"program": "/path/to/the/local/executable",
|
||||
"cwd": "${workspaceRoot},
|
||||
"MIMode": "gdb",
|
||||
"miDebuggerAddress": "${host}:${port}"
|
||||
"miDebuggerServerAddress": "${host}:${port}",
|
||||
"sourceFileMap#json": "{\"${RemoteRoot}\": \"${workspaceRoot}\"}"
|
||||
}
|
||||
},
|
||||
"remote attach": {
|
||||
"adapter": "cpptools-remote",
|
||||
"remote-request": "attach",
|
||||
"configuration": {
|
||||
"request": "attach",
|
||||
"request": "launch",
|
||||
|
||||
"program": "/path/to/the/local/executable",
|
||||
"cwd": "${workspaceRoot},
|
||||
"MIMode": "gdb",
|
||||
"miDebuggerAddress": "${host}:${port}"
|
||||
"miDebuggerServerAddress": "${host}:${port}",
|
||||
"sourceFileMap#json": "{\"${RemoteRoot}\": \"${workspaceRoot}\"}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue