[Lldb-commits] [lldb] [lldb][lldb-vscode] Add example configuration for connecting to a remote gdbserver (PR #68866)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 13 08:15:29 PDT 2023


================
@@ -212,6 +212,38 @@ This loads the coredump file `/cores/123.core` associated with the program
 }
 ```
 
+### Connect to a Debug Server on the Current Machine
+
+This connects to a debug server (e.g. `lldb-server`, `gdbserver`) on
+the current machine, that is debugging the program `/tmp/a.out` and listening
+locally on port `2345`.
+
+```javascript
+{
+  "name": "Local Debug Server",
+  "type": "lldb-vscode",
+  "request": "launch",
----------------
DavidSpickett wrote:

We give the example of "attaching" to a core file so we're already stretching the meaning.

https://github.com/llvm/llvm-project/pull/68866


More information about the lldb-commits mailing list