diff -r 401791e6f50f -r 6d8dcb3551b3 eric6/DebugClients/Python/QProcessExtension.py --- a/eric6/DebugClients/Python/QProcessExtension.py Wed Feb 12 20:04:31 2020 +0100 +++ b/eric6/DebugClients/Python/QProcessExtension.py Thu Feb 13 19:27:10 2020 +0100 @@ -13,7 +13,6 @@ _debugClient = None -# TODO: extend this with first line logic def _isPythonProgram(program, arguments): """ Protected function to check, if program is a Python interpreter and @@ -28,7 +27,10 @@ @rtype tuple of (bool, tuple of (str, list of str)) """ prog = program.lower() - ok = "python" in prog and arguments[0] != '-m' + ok = ( + ("python" in prog and arguments[0] != '-m') or + "pypy" in prog + ) return ok, (program, arguments[:]) @@ -132,7 +134,12 @@ else: mode = module.QIODevice.ReadWrite ok, (program, arguments) = _isPythonProgram(program, arguments) - if ok: + if ( + ok and ( + not os.path.basename(arguments[0]) + in _debugClient.noDebugList + ) + ): newArgs = self.modifyArgs( arguments, _debugClient.multiprocessSupport) super(QProcessWrapper, self).start(program, newArgs, mode)