124 |
124 |
125 # Connect the signals emitted by the debug-server |
125 # Connect the signals emitted by the debug-server |
126 debugServer.clientGone.connect(self.__clientGone) |
126 debugServer.clientGone.connect(self.__clientGone) |
127 debugServer.clientLine.connect(self.__clientLine) |
127 debugServer.clientLine.connect(self.__clientLine) |
128 debugServer.clientExit.connect(self.__clientExit) |
128 debugServer.clientExit.connect(self.__clientExit) |
|
129 debugServer.lastClientExited.connect(self.__lastClientExited) |
129 debugServer.clientSyntaxError.connect(self.__clientSyntaxError) |
130 debugServer.clientSyntaxError.connect(self.__clientSyntaxError) |
130 debugServer.clientException.connect(self.__clientException) |
131 debugServer.clientException.connect(self.__clientException) |
131 debugServer.clientSignal.connect(self.__clientSignal) |
132 debugServer.clientSignal.connect(self.__clientSignal) |
132 debugServer.clientVariables.connect(self.__clientVariables) |
133 debugServer.clientVariables.connect(self.__clientVariables) |
133 debugServer.clientVariable.connect(self.__clientVariable) |
134 debugServer.clientVariable.connect(self.__clientVariable) |
1085 self.appendStdout.emit(self.tr( |
1082 self.appendStdout.emit(self.tr( |
1086 '"{0}" has terminated with an exit status of' |
1083 '"{0}" has terminated with an exit status of' |
1087 ' {1}.\n{2}\n').format( |
1084 ' {1}.\n{2}\n').format( |
1088 Utilities.normabspath(self.ui.currentProg), status, |
1085 Utilities.normabspath(self.ui.currentProg), status, |
1089 info)) |
1086 info)) |
1090 |
1087 |
|
1088 def __lastClientExited(self): |
|
1089 """ |
|
1090 Private slot handling the exit of the last client. |
|
1091 """ |
|
1092 self.viewmanager.exit() |
|
1093 self.__resetUI() |
|
1094 |
1091 def __clientSyntaxError(self, message, filename, lineNo, characterNo): |
1095 def __clientSyntaxError(self, message, filename, lineNo, characterNo): |
1092 """ |
1096 """ |
1093 Private method to handle a syntax error in the debugged program. |
1097 Private method to handle a syntax error in the debugged program. |
1094 |
1098 |
1095 @param message message of the syntax error (string) |
1099 @param message message of the syntax error (string) |