Debugger/DebugUI.py

changeset 4366
9445c7cb991f
parent 4303
57b5de82ce05
child 4367
af2d7ceeb019
equal deleted inserted replaced
4365:d97f2e05ae1b 4366:9445c7cb991f
123 debugServer.clientGone.connect(self.__clientGone) 123 debugServer.clientGone.connect(self.__clientGone)
124 debugServer.clientLine.connect(self.__clientLine) 124 debugServer.clientLine.connect(self.__clientLine)
125 debugServer.clientExit.connect(self.__clientExit) 125 debugServer.clientExit.connect(self.__clientExit)
126 debugServer.clientSyntaxError.connect(self.__clientSyntaxError) 126 debugServer.clientSyntaxError.connect(self.__clientSyntaxError)
127 debugServer.clientException.connect(self.__clientException) 127 debugServer.clientException.connect(self.__clientException)
128 debugServer.clientSignal.connect(self.__clientSignal)
128 debugServer.clientVariables.connect(self.__clientVariables) 129 debugServer.clientVariables.connect(self.__clientVariables)
129 debugServer.clientVariable.connect(self.__clientVariable) 130 debugServer.clientVariable.connect(self.__clientVariable)
130 debugServer.clientBreakConditionError.connect( 131 debugServer.clientBreakConditionError.connect(
131 self.__clientBreakConditionError) 132 self.__clientBreakConditionError)
132 debugServer.clientWatchConditionError.connect( 133 debugServer.clientWatchConditionError.connect(
1188 else: 1189 else:
1189 self.debugActions[self.lastAction]() 1190 self.debugActions[self.lastAction]()
1190 else: 1191 else:
1191 self.__continue() 1192 self.__continue()
1192 1193
1194 def __clientSignal(self, message, filename, lineNo, funcName, funcArgs):
1195 """
1196 Private method to handle a signal generated on the client side.
1197
1198 @param message message of the syntax error
1199 @type str
1200 @param filename translated filename of the syntax error position
1201 @type str
1202 @param lineNo line number of the syntax error position
1203 @type int
1204 @param funcName name of the function causing the signal
1205 @type str
1206 @param funcArgs function arguments
1207 @type str
1208 """
1209 self.ui.raise_()
1210 self.ui.activateWindow()
1211 QApplication.processEvents()
1212 self.viewmanager.setFileLine(filename, lineNo, True)
1213 E5MessageBox.critical(
1214 self.ui, Program,
1215 self.tr("""<p>The program generate the signal "{0}".<br/>"""
1216 """File: <b>{2}</b>, Line: <b>{3}</b></p>""").format(
1217 message, filename, lineNo))
1218
1193 def __clientGone(self, unplanned): 1219 def __clientGone(self, unplanned):
1194 """ 1220 """
1195 Private method to handle the disconnection of the debugger client. 1221 Private method to handle the disconnection of the debugger client.
1196 1222
1197 @param unplanned True if the client died, False otherwise 1223 @param unplanned True if the client died, False otherwise

eric ide

mercurial