diff -r 481cc0d3699d -r 0e2ab682dfa3 src/eric7/DebugClients/Python/DebugUtilities.py --- a/src/eric7/DebugClients/Python/DebugUtilities.py Tue Dec 06 11:24:53 2022 +0100 +++ b/src/eric7/DebugClients/Python/DebugUtilities.py Tue Dec 06 14:06:42 2022 +0100 @@ -295,6 +295,10 @@ @return modified argument list @rtype list of str """ + if not isPythonProgram(arguments[0]): + # it is not a Python program + return arguments + debugClientScript = os.path.join(os.path.dirname(__file__), "DebugClient.py") if debugClientScript in arguments: # it is already patched