Fixed some bugs in the debug clients.

Tue, 13 Sep 2016 18:33:44 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 13 Sep 2016 18:33:44 +0200
changeset 5163
741cf2db16ba
parent 5162
bbf2bb2d533c
child 5165
37691caeec1a

Fixed some bugs in the debug clients.

DebugClients/Python2/DebugBase.py file | annotate | diff | comparison | revisions
DebugClients/Python3/DebugBase.py file | annotate | diff | comparison | revisions
--- 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
--- a/DebugClients/Python3/DebugBase.py	Sun Sep 11 16:39:30 2016 +0200
+++ b/DebugClients/Python3/DebugBase.py	Tue Sep 13 18:33:44 2016 +0200
@@ -608,7 +608,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
                 
@@ -674,7 +674,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