From 14e35ee6ff469330cb2b1330d0b67858c7fdb2b1 Mon Sep 17 00:00:00 2001 From: Pavel Minaev Date: Fri, 31 Jan 2020 15:12:02 -0800 Subject: [PATCH] Fix #29: debugpy: "python" key is required in "launch" request Allow "python" to be missing or empty. --- src/debugpy/launcher/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debugpy/launcher/handlers.py b/src/debugpy/launcher/handlers.py index 1d48b9bd..666582fe 100644 --- a/src/debugpy/launcher/handlers.py +++ b/src/debugpy/launcher/handlers.py @@ -55,7 +55,7 @@ def launch_request(request): ) elif "pythonPath" in request: python_key = "pythonPath" - python = request(python_key, json.array(unicode, vectorize=True, size=(1,))) + python = request(python_key, json.array(unicode, vectorize=True, size=(0,))) if not len(python): python = [compat.filename(sys.executable)] cmdline += python