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

Adrian Vogelsgesang via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 6 17:01:26 PST 2025


================
@@ -0,0 +1,48 @@
+import * as path from "path";
+import { BaseProcessTree, ProcessTreeParser } from "../base-process-tree";
+
+export class WindowsProcessTree extends BaseProcessTree {
+  protected override getCommand(): string {
+    return "PowerShell";
+  }
+
+  protected override getCommandArguments(): string[] {
+    return [
+      "-Command",
+      'Get-CimInstance -ClassName Win32_Process | Format-Table ProcessId, @{Label="CreationDate";Expression={"{0:yyyyMddHHmmss}" -f $_.CreationDate}}, CommandLine | Out-String -width 9999',
----------------
vogelsgesang wrote:

please update the commit message / PR description

> Windows: uses WMIC.exe to query WMI for processes


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


More information about the lldb-commits mailing list