eric6/DebugClients/Python/DebugClientBase.py

changeset 7901
6ff7ccf0cb50
parent 7897
9acc015ea443
child 7903
827d89937c30
diff -r 72b88fb20261 -r 6ff7ccf0cb50 eric6/DebugClients/Python/DebugClientBase.py
--- 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

eric ide

mercurial