--- a/eric6/DebugClients/Python/SubprocessExtension.py Mon Dec 14 19:23:25 2020 +0100 +++ b/eric6/DebugClients/Python/SubprocessExtension.py Mon Dec 14 19:59:03 2020 +0100 @@ -11,7 +11,7 @@ import os import shlex -from DebugUtilities import isPythonProgram, startsWithShebang, patchArguments +from DebugUtilities import isPythonProgram, patchArguments _debugClient = None @@ -57,11 +57,7 @@ arguments = arguments[:] ok = isPythonProgram(arguments[0]) if ok: - if startsWithShebang(arguments[0]): - scriptName = os.path.basename(arguments[0]) - else: - # TODO: this seems to be weird - scriptName = os.path.basename(arguments[0]) + scriptName = os.path.basename(arguments[0]) if scriptName not in _debugClient.noDebugList: arguments = patchArguments( _debugClient, arguments, noRedirect=True