Added code to the Python debugger backends to skip over 'site-packages' and 'dist-packages' if Python tracing is disabled.

Sat, 29 Jun 2013 18:40:45 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 29 Jun 2013 18:40:45 +0200
changeset 2761
bcc10ef7015d
parent 2759
61d5d47755f0
child 2763
e4794166ad70

Added code to the Python debugger backends to skip over 'site-packages' and 'dist-packages' if Python tracing is disabled.

DebugClients/Python/DebugClientBase.py file | annotate | diff | comparison | revisions
DebugClients/Python3/DebugClientBase.py file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/DebugClientBase.py	Sat Jun 29 17:32:25 2013 +0200
+++ b/DebugClients/Python/DebugClientBase.py	Sat Jun 29 18:40:45 2013 +0200
@@ -1193,6 +1193,11 @@
             if afn.startswith(d):
                 return 1
         
+        # special treatment for paths containing site-packages or dist-packages
+        for part in ["site-packages", "dist-packages"]:
+            if part in afn:
+                return 1
+        
         return 0
         
     def getRunning(self):
--- a/DebugClients/Python3/DebugClientBase.py	Sat Jun 29 17:32:25 2013 +0200
+++ b/DebugClients/Python3/DebugClientBase.py	Sat Jun 29 18:40:45 2013 +0200
@@ -1203,6 +1203,11 @@
             if afn.startswith(d):
                 return True
         
+        # special treatment for paths containing site-packages or dist-packages
+        for part in ["site-packages", "dist-packages"]:
+            if part in afn:
+                return True
+        
         return False
     
     def getRunning(self):

eric ide

mercurial