IndexError in pydev_monkey.py when debugging (PY-9767)

We shouldn't attach to debugger if there are only options in a new python process command line
This commit is contained in:
Elizaveta Shashkova
2015-12-10 17:10:29 +03:00
parent 1bc22997d5
commit 8c395b2e20
+1 -1
View File
@@ -125,7 +125,7 @@ def patch_args(args):
break
i += 1
if i < len(args) and _is_managed_arg(args[i]): # no need to add pydevd twice
if i >= len(args) or _is_managed_arg(args[i]): # no need to add pydevd twice
return args
for x in original: