DebugClients/Python/DebugBase.py

changeset 2622
08cc2f31c983
parent 2620
a3be952f2ae4
child 2648
43a3bec63c09
--- a/DebugClients/Python/DebugBase.py	Thu Apr 25 19:53:25 2013 +0200
+++ b/DebugClients/Python/DebugBase.py	Fri Apr 26 19:37:21 2013 +0200
@@ -672,13 +672,25 @@
                 
                 for fr in frlist:
                     filename = self._dbgClient.absPath(self.fix_frame_filename(fr))
-                    linenr = fr.f_lineno
                     
                     if os.path.basename(filename).startswith("DebugClient") or \
                        os.path.basename(filename) == "bdb.py":
                         break
                     
-                    exclist.append([filename, linenr])
+                    linenr = fr.f_lineno
+                    ffunc = fr.f_code.co_name
+                    
+                    if ffunc == '?':
+                        ffunc = ''
+                    
+                    if ffunc and not ffunc.startswith("<"):
+                        argInfo = inspect.getargvalues(fr)
+                        fargs = inspect.formatargvalues(argInfo[0], argInfo[1],
+                                                        argInfo[2], argInfo[3])
+                    else:
+                        fargs = ""
+                    
+                    exclist.append([filename, linenr, ffunc, fargs])
             
             self._dbgClient.write("%s%s\n" % (ResponseException, unicode(exclist)))
             

eric ide

mercurial