eric6/Debugger/DebugUI.py

branch
multi_processing
changeset 7392
b6674724612a
parent 7389
770ffcb88be5
child 7397
f8d2f6dd6636
equal deleted inserted replaced
7390:052ce4cf06c6 7392:b6674724612a
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)
1028 @param message exit message of the debugged program 1029 @param message exit message of the debugged program
1029 @type str 1030 @type str
1030 @param quiet flag indicating to suppress exit info display 1031 @param quiet flag indicating to suppress exit info display
1031 @type bool 1032 @type bool
1032 """ 1033 """
1033 self.viewmanager.exit()
1034
1035 self.__resetUI()
1036
1037 if not quiet: 1034 if not quiet:
1038 if ( 1035 if (
1039 not Preferences.getDebugger("SuppressClientExit") or 1036 not Preferences.getDebugger("SuppressClientExit") or
1040 status != 0 1037 status != 0
1041 ): 1038 ):
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)

eric ide

mercurial