File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -212,6 +212,38 @@ This loads the coredump file `/cores/123.core` associated with the program
212212}
213213```
214214
215+ ### Connect to a Debug Server on the Current Machine
216+
217+ This connects to a debug server (e.g. ` lldb-server ` , ` gdbserver ` ) on
218+ the current machine, that is debugging the program ` /tmp/a.out ` and listening
219+ locally on port ` 2345 ` .
220+
221+ ``` javascript
222+ {
223+ " name" : " Local Debug Server" ,
224+ " type" : " lldb-vscode" ,
225+ " request" : " attach" ,
226+ " program" : " /tmp/a.out" ,
227+ " attachCommands" : [" gdb-remote 2345" ],
228+ }
229+ ```
230+
231+ ### Connect to a Debug Server on Another Machine
232+
233+ This connects to a debug server running on another machine with hostname
234+ ` hostnmame ` . Which is debugging the program ` /tmp/a.out ` and listening on
235+ port ` 5678 ` of that other machine.
236+
237+ ``` javascript
238+ {
239+ " name" : " Remote Debug Server" ,
240+ " type" : " lldb-vscode" ,
241+ " request" : " attach" ,
242+ " program" : " /tmp/a.out" ,
243+ " attachCommands" : [" gdb-remote hostname:5678" ],
244+ }
245+ ```
246+
215247# Custom debugger commands
216248
217249The ` lldb-vscode ` tool includes additional custom commands to support the Debug
You can’t perform that action at this time.
0 commit comments