DebugClients/Python/DebugBase.py

branch
6_1_x
changeset 5164
197acc53a662
parent 5157
c271375ca534
child 5187
ef0fcefe97f8
--- a/DebugClients/Python/DebugBase.py	Sat Sep 10 16:29:20 2016 +0200
+++ b/DebugClients/Python/DebugBase.py	Tue Sep 13 18:37:20 2016 +0200
@@ -574,7 +574,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
                 
@@ -591,7 +591,7 @@
                 else:
                     fargs = ""
                 
-            stack.append([fname, fline, ffunc, fargs])
+                stack.append([fname, fline, ffunc, fargs])
             
             if fr == self._dbgClient.mainFrame:
                 fr = None
@@ -637,7 +637,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
                 
@@ -654,7 +654,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