[Lldb-commits] [lldb] [lldb-dap] Add process picker command to VS Code extension (PR #128943)

Matthew Bastien via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 6 13:48:14 PST 2025


================
@@ -65,6 +65,19 @@ This will attach to a process `a.out` whose process ID is 123:
 }
 ```
 
+You can also use the variable substituion `${command:PickProcess}` to select a
+process at the start of the debug session instead of setting the pid manually:
+
+```javascript
+{
+  "type": "lldb-dap",
+  "request": "attach",
+  "name": "Attach to PID",
+  "program": "/tmp/a.out",
----------------
matthewbastien wrote:

Whoops. Copy and paste issue. Good catch!

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


More information about the lldb-commits mailing list