Debugger/DebugServer.py

branch
maintenance
changeset 6455
22a6fc33ab6d
parent 6395
613e37fabd96
parent 6431
1842436770c4
child 6518
926d65bd23b8
equal deleted inserted replaced
6409:913a08004977 6455:22a6fc33ab6d
472 self.running = False 472 self.running = False
473 473
474 if not self.passive or not self.passiveClientExited: 474 if not self.passive or not self.passiveClientExited:
475 if self.debuggerInterface and self.debuggerInterface.isConnected(): 475 if self.debuggerInterface and self.debuggerInterface.isConnected():
476 self.shutdownServer() 476 self.shutdownServer()
477 self.debugging = False
477 self.clientGone.emit(unplanned and self.debugging) 478 self.clientGone.emit(unplanned and self.debugging)
478 479
479 if clType: 480 if clType:
480 if clType not in self.getSupportedLanguages(): 481 if clType not in self.getSupportedLanguages():
481 # a not supported client language was requested 482 # a not supported client language was requested
1487 if self.passive: 1488 if self.passive:
1488 self.__passiveShutDown() 1489 self.__passiveShutDown()
1489 self.clientExit.emit(int(status), message) 1490 self.clientExit.emit(int(status), message)
1490 if Preferences.getDebugger("AutomaticReset") or (self.running and 1491 if Preferences.getDebugger("AutomaticReset") or (self.running and
1491 not self.debugging): 1492 not self.debugging):
1493 self.debugging = False
1492 self.startClient(False) 1494 self.startClient(False)
1493 if self.passive: 1495 if self.passive:
1494 self.__createDebuggerInterface("None") 1496 self.__createDebuggerInterface("None")
1495 self.signalClientOutput(self.tr('\nNot connected\n')) 1497 self.signalClientOutput(self.tr('\nNot connected\n'))
1496 self.signalClientStatement(False) 1498 self.signalClientStatement(False)
1730 Public method to test, if the debug server is connected to a backend. 1732 Public method to test, if the debug server is connected to a backend.
1731 1733
1732 @return flag indicating a connection (boolean) 1734 @return flag indicating a connection (boolean)
1733 """ 1735 """
1734 return self.debuggerInterface and self.debuggerInterface.isConnected() 1736 return self.debuggerInterface and self.debuggerInterface.isConnected()
1737
1738 def isDebugging(self):
1739 """
1740 Public method to test, if the debug server is debugging.
1741
1742 @return flag indicating the debugging state
1743 @rtype bool
1744 """
1745 return self.debugging
1746
1747 def setDebugging(self, on):
1748 """
1749 Public method to set the debugging state.
1750
1751 @param on flag indicating the new debugging state
1752 @type bool
1753 """
1754 self.debugging = on

eric ide

mercurial