DebugClients/Python/DebugBase.py

branch
debugger fine grinding
changeset 5658
e5f6fe5855fd
parent 5644
509d3c9666b0
child 5659
cf3ecfec6321
--- a/DebugClients/Python/DebugBase.py	Thu Mar 23 20:27:21 2017 +0100
+++ b/DebugClients/Python/DebugBase.py	Thu Mar 23 20:30:49 2017 +0100
@@ -524,6 +524,20 @@
         @type frame object
         """
         self._set_stopinfo(None, frame.f_back)
+    
+    def move_instruction_pointer(self, lineno):
+        """
+        Public methode to move the instruction pointer to another line.
+        
+        @param lineno new line number
+        @type int
+        """
+        try:
+            self.currentFrame.f_lineno = lineno
+            stack = self.getStack(self.currentFrame)
+            self._dbgClient.sendResponseLine(stack)
+        except Exception as e:
+            printerr(e)
 
     def set_quit(self):
         """

eric ide

mercurial