mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user