mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Fix #29: debugpy: "python" key is required in "launch" request
Allow "python" to be missing or empty.
This commit is contained in:
parent
a40fbf6fc9
commit
14e35ee6ff
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue