diff -r d97f2e05ae1b -r 9445c7cb991f Debugger/DebugUI.py --- a/Debugger/DebugUI.py Sun Aug 16 12:24:28 2015 +0200 +++ b/Debugger/DebugUI.py Sun Aug 16 13:47:44 2015 +0200 @@ -125,6 +125,7 @@ debugServer.clientExit.connect(self.__clientExit) debugServer.clientSyntaxError.connect(self.__clientSyntaxError) debugServer.clientException.connect(self.__clientException) + debugServer.clientSignal.connect(self.__clientSignal) debugServer.clientVariables.connect(self.__clientVariables) debugServer.clientVariable.connect(self.__clientVariable) debugServer.clientBreakConditionError.connect( @@ -1190,6 +1191,31 @@ else: self.__continue() + def __clientSignal(self, message, filename, lineNo, funcName, funcArgs): + """ + Private method to handle a signal generated on the client side. + + @param message message of the syntax error + @type str + @param filename translated filename of the syntax error position + @type str + @param lineNo line number of the syntax error position + @type int + @param funcName name of the function causing the signal + @type str + @param funcArgs function arguments + @type str + """ + self.ui.raise_() + self.ui.activateWindow() + QApplication.processEvents() + self.viewmanager.setFileLine(filename, lineNo, True) + E5MessageBox.critical( + self.ui, Program, + self.tr("""<p>The program generate the signal "{0}".<br/>""" + """File: <b>{2}</b>, Line: <b>{3}</b></p>""").format( + message, filename, lineNo)) + def __clientGone(self, unplanned): """ Private method to handle the disconnection of the debugger client.