[Lldb-commits] [lldb] [lldb-dap][vscode][windows] check if Python is installed properly before starting lldb-dap (PR #181124)

Charles Zablit via lldb-commits lldb-commits at lists.llvm.org
Fri May 1 08:18:29 PDT 2026


================
@@ -59,6 +60,22 @@ export class LLDBDapServer implements vscode.Disposable {
       return this.serverInfo;
     }
 
+    if (os.platform() === "win32") {
+      const pythonCheckProcess = child_process.spawnSync(dapPath, [
+        "--check-python",
+      ]);
+      if (pythonCheckProcess.status !== 0) {
+        await vscode.window.showErrorMessage(
+          "Python is not installed correctly. Please install it to use lldb-dap.",
----------------
charles-zablit wrote:

I will do this in a follow up PR if that's ok, because we need to write the documentation for it first.

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


More information about the lldb-commits mailing list