diff -r 401791e6f50f -r 6d8dcb3551b3 eric6/Debugger/DebugViewer.py --- a/eric6/Debugger/DebugViewer.py Wed Feb 12 20:04:31 2020 +0100 +++ b/eric6/Debugger/DebugViewer.py Thu Feb 13 19:27:10 2020 +0100 @@ -452,7 +452,6 @@ @param debuggerId ID of the debugger backend @type str """ - self.__setDebuggerIconAndState(debuggerId, "exit", "exited") if debuggerId == self.getSelectedDebuggerId(): # the current client has exited self.globalsViewer.handleResetUI() @@ -463,6 +462,8 @@ self.currentStack = None self.stackComboBox.clear() self.__threadList.clear() + index = self.__debuggersCombo.findText(debuggerId, Qt.MatchExactly) + self.__debuggersCombo.removeItem(index) def __clientSyntaxError(self, message, filename, lineNo, characterNo, debuggerId): @@ -637,9 +638,6 @@ elif thread['broken']: if debugStatus < 1: debugStatus = 0 - if not threadList: - # empty threadlist means 'exited' - debugStatus = 2 if debugStatus == -1: icon = "mediaPlaybackStart" @@ -647,12 +645,9 @@ elif debugStatus == 0: icon = "break" state = "broken" - elif debugStatus == 1: + else: icon = "exceptions" state = "exception" - else: - icon = "exit" - state = "exited" self.__setDebuggerIconAndState("", icon, state) def __threadSelected(self, current, previous): @@ -729,7 +724,7 @@ """ Public method to get the currently selected debugger's state. - @return selected debugger's state (broken, exception, exited, running) + @return selected debugger's state (broken, exception, running) @rtype str """ return self.__debuggersCombo.currentData() @@ -743,7 +738,7 @@ @type str @param iconName name of the icon to be used @type str - @param state state of the debugger (broken, exception, exited, running) + @param state state of the debugger (broken, exception, running) @type str """ if debuggerId: