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

Walter Erquinigo via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 13 07:17:53 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",
----------------
walter-erquinigo wrote:

Out of curiosity. Does launch actually work? Or does it need to be attach? IIUC you can only do launch if the server is running in platform mode, otherwise you can only attach.

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


More information about the lldb-commits mailing list