[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:47:48 PST 2025


================
@@ -517,6 +520,16 @@
               "cwd": "^\"\\${workspaceRoot}\""
             }
           },
+          {
+            "label": "LLDB: Attach to Process",
+            "description": "",
+            "body": {
+              "type": "lldb-dap",
+              "request": "attach",
+              "name": "${1:Attach}",
+              "pid": "^\"\\${command:PickProcess}\""
----------------
matthewbastien wrote:

Yeah, VS Code allows supplying your own variable substitutions. I've set this up in the `package.json` at line 150:

```
"variables": {
  "pickProcess": "lldb-dap.pickProcess"
},
```

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


More information about the lldb-commits mailing list