--- a/eric6/DebugClients/Python/DebugClientBase.py Sat Dec 19 15:22:26 2020 +0100 +++ b/eric6/DebugClients/Python/DebugClientBase.py Sat Dec 19 19:57:09 2020 +0100 @@ -21,6 +21,7 @@ import time import types import importlib +import fnmatch import DebugClientCapabilities @@ -2318,7 +2319,7 @@ else: print("No network port given. Aborting...") # __IGNORE_WARNING_M801__ - + def close(self, fd): """ Public method implementing a close method as a replacement for @@ -2333,7 +2334,7 @@ return DebugClientOrigClose(fd) - + def __getSysPath(self, firstEntry): """ Private slot to calculate a path list including the PYTHONPATH @@ -2350,3 +2351,18 @@ sysPath.insert(0, firstEntry) sysPath.insert(0, '') return sysPath + + def skipMultiProcessDebugging(self, scriptName): + """ + Public method to check, if the given script is eligible for debugging. + + @param scriptName name of the script to check + @type str + @return flag indicating eligibility + @rtype bool + """ + for pattern in self.noDebugList: + if fnmatch.fnmatch(scriptName, pattern): + return True + + return False