860 |
860 |
861 def __clientStatement(self, more): |
861 def __clientStatement(self, more): |
862 """ |
862 """ |
863 Private method to handle the response from the debugger client. |
863 Private method to handle the response from the debugger client. |
864 |
864 |
865 @param more flag indicating that more user input is required (boolean) |
865 @param more flag indicating that more user input is required |
|
866 @type bool |
866 """ |
867 """ |
867 if not self.inRawMode: |
868 if not self.inRawMode: |
868 self.inContinue = more |
869 self.inContinue = more |
869 self.__writePrompt() |
870 self.__writePrompt() |
870 self.inCommandExecution = False |
871 self.inCommandExecution = False |
1042 QApplication.processEvents() |
1043 QApplication.processEvents() |
1043 |
1044 |
1044 self.setFocus() |
1045 self.setFocus() |
1045 self.inRawMode = True |
1046 self.inRawMode = True |
1046 self.echoInput = echo |
1047 self.echoInput = echo |
1047 self.__write(s) |
1048 self.__writeQueued(s) |
1048 line, col = self.__getEndPos() |
1049 line, col = self.__getEndPos() |
1049 self.setCursorPosition(line, col) |
1050 self.setCursorPosition(line, col) |
1050 buf = self.text(line) |
1051 buf = self.text(line) |
1051 if buf.startswith(sys.ps1): |
1052 if buf.startswith(sys.ps1): |
1052 buf = buf.replace(sys.ps1, "") |
1053 buf = buf.replace(sys.ps1, "") |
1840 ): |
1841 ): |
1841 # call main window quit() |
1842 # call main window quit() |
1842 self.vm.quit() |
1843 self.vm.quit() |
1843 return |
1844 return |
1844 |
1845 |
1845 self.dbs.remoteStatement(cmd) |
1846 self.dbs.remoteStatement( |
|
1847 e5App().getObject("DebugUI").getSelectedDebuggerId(), |
|
1848 cmd |
|
1849 ) |
1846 while self.inCommandExecution: |
1850 while self.inCommandExecution: |
1847 try: |
1851 try: |
1848 QApplication.processEvents() |
1852 QApplication.processEvents() |
1849 except KeyboardInterrupt: |
1853 except KeyboardInterrupt: |
1850 pass |
1854 pass |