DebugClients/Python2/DebugBase.py

changeset 5163
741cf2db16ba
parent 5161
f7b6ded9cc37
child 5171
f1e9eebd5469
--- a/DebugClients/Python2/DebugBase.py	Sun Sep 11 16:39:30 2016 +0200
+++ b/DebugClients/Python2/DebugBase.py	Tue Sep 13 18:33:44 2016 +0200
@@ -604,7 +604,7 @@
         stack = []
         while fr is not None:
             fname = self._dbgClient.absPath(self.fix_frame_filename(fr))
-            if not fname.startswith("<"):
+            if not fname.startswith("<") and not fname.endswith("bdb.py"):
                 fline = fr.f_lineno
                 ffunc = fr.f_code.co_name
                 
@@ -621,7 +621,7 @@
                 else:
                     fargs = ""
                 
-            stack.append([fname, fline, ffunc, fargs])
+                stack.append([fname, fline, ffunc, fargs])
             
             if fr == self._dbgClient.mainFrame:
                 fr = None
@@ -669,7 +669,7 @@
             # return from dispatch_call
             fr.f_trace = self.trace_dispatch
             fname = self._dbgClient.absPath(self.fix_frame_filename(fr))
-            if not fname.startswith("<"):
+            if not fname.startswith("<") and not fname.endswith("bdb.py"):
                 fline = fr.f_lineno
                 ffunc = fr.f_code.co_name
                 
@@ -686,7 +686,7 @@
                 else:
                     fargs = ""
                 
-            stack.append([fname, fline, ffunc, fargs])
+                stack.append([fname, fline, ffunc, fargs])
             
             if fr == self._dbgClient.mainFrame:
                 fr = None

eric ide

mercurial