--- a/src/eric7/DebugClients/Python/DebugUtilities.py Thu Dec 01 10:18:07 2022 +0100 +++ b/src/eric7/DebugClients/Python/DebugUtilities.py Mon Jan 02 11:16:03 2023 +0100 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2015 - 2022 Detlev Offenbach <detlev@die-offenbachs.de> +# Copyright (c) 2015 - 2023 Detlev Offenbach <detlev@die-offenbachs.de> # """ @@ -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