Fixed some bugs in the debug clients. 6_1_x

Tue, 13 Sep 2016 18:37:20 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 13 Sep 2016 18:37:20 +0200
branch
6_1_x
changeset 5164
197acc53a662
parent 5157
c271375ca534
child 5167
475f5f1a052c

Fixed some bugs in the debug clients.

DebugClients/Python/DebugBase.py file | annotate | diff | comparison | revisions
DebugClients/Python3/DebugBase.py file | annotate | diff | comparison | revisions
--- 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
--- a/DebugClients/Python3/DebugBase.py	Sat Sep 10 16:29:20 2016 +0200
+++ b/DebugClients/Python3/DebugBase.py	Tue Sep 13 18:37:20 2016 +0200
@@ -605,7 +605,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
                 
@@ -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
                 

eric ide

mercurial