[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:13:26 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:

It does but I think because launch overriding launchCommands is equivalent to attach overriding attachCommands.

The only difference I see in VS Code is that in the start stop bar thing, launch has stop then disconnect, attach has disconnect then stop. Strange.

It's not attach or launch but it's more attach, so I'll change this.

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


More information about the lldb-commits mailing list