def OnDebugFile(self, event): """default event handler""" # before running, save first! if hasattr(self.selected, '_pane') and self.selected._pane: self.selected._pane.Commit() self._dbg_session = debugPythonSession(self.selected.abs_file) self.UpdateBreakpoins() self._dbg_session.send_command('info line') self._dbg_session.send_command('info threads verbose') self._dbg_session.send_command('pp locals()') self._dbg_session.send_command('info break')
def OnDebugProject(self, event): """default event handler""" # before running, save first! book = self.frame.docBook n = book.GetPageCount() for pane in [book.GetPage(i) for i in range(0, n)]: try: if pane.object.project is self.selected: pane.Commit() except: pass self._dbg_session = debugPythonSession(self.selected.project.main_file.key_file) self.UpdateBreakpoins() self._dbg_session.send_command('info line') self._dbg_session.send_command('info threads verbose') self._dbg_session.send_command('pp locals()') self._dbg_session.send_command('info break')