DebugClients/Python3/DebugBase.py

branch
jsonrpc
changeset 5140
01484c0afbc6
parent 5131
889ed5ff7a68
child 5156
5cb4740bd2a9
--- a/DebugClients/Python3/DebugBase.py	Sat Sep 03 19:20:42 2016 +0200
+++ b/DebugClients/Python3/DebugBase.py	Sun Sep 04 13:46:43 2016 +0200
@@ -199,17 +199,20 @@
             if not self.__skip_it(fromFrame) and not self.__skip_it(toFrame):
                 if event in ["call", "return"]:
                     fr = fromFrame
-                    # TODO: change from and to info to a dictionary
-                    fromStr = "{0}:{1}:{2}".format(
-                        self._dbgClient.absPath(self.fix_frame_filename(fr)),
-                        fr.f_lineno,
-                        fr.f_code.co_name)
+                    fromInfo = {
+                        "filename": self._dbgClient.absPath(
+                            self.fix_frame_filename(fr)),
+                        "linenumber": fr.f_lineno,
+                        "codename": fr.f_code.co_name,
+                    }
                     fr = toFrame
-                    toStr = "{0}:{1}:{2}".format(
-                        self._dbgClient.absPath(self.fix_frame_filename(fr)),
-                        fr.f_lineno,
-                        fr.f_code.co_name)
-                    self._dbgClient.sendCallTrace(event, fromStr, toStr)
+                    toInfo = {
+                        "filename": self._dbgClient.absPath(
+                            self.fix_frame_filename(fr)),
+                        "linenumber": fr.f_lineno,
+                        "codename": fr.f_code.co_name,
+                    }
+                    self._dbgClient.sendCallTrace(event, fromInfo, toInfo)
     
     def trace_dispatch(self, frame, event, arg):
         """

eric ide

mercurial