src/eric7/Debugger/DebugServer.py

branch
eric7
changeset 10981
e80ffe75107c
parent 10978
0373041ce25a
child 10982
db9e5f8fae05
equal deleted inserted replaced
10980:40e1979abdb7 10981:e80ffe75107c
2104 @param reportAllExceptions flag to enable reporting of all exceptions 2104 @param reportAllExceptions flag to enable reporting of all exceptions
2105 @type bool 2105 @type bool
2106 @param debuggerId ID of the debugger backend 2106 @param debuggerId ID of the debugger backend
2107 @type str 2107 @type str
2108 """ 2108 """
2109 self.appendStdout.emit(self.tr("Passive debug connection received\n")) 2109 if self.passive:
2110 self.passiveClientExited = False 2110 self.appendStdout.emit(self.tr("Passive debug connection received\n"))
2111 self.debugging = True 2111 self.passiveClientExited = False
2112 self.running = True 2112 self.debugging = True
2113 self.__restoreBreakpoints(debuggerId) 2113 self.running = True
2114 self.__restoreWatchpoints(debuggerId) 2114 self.__restoreBreakpoints(debuggerId)
2115 self.passiveDebugStarted.emit(fn, reportAllExceptions) 2115 self.__restoreWatchpoints(debuggerId)
2116 self.passiveDebugStarted.emit(fn, reportAllExceptions)
2117 else:
2118 self.appendStdout.emit(
2119 self.tr(
2120 "Passive debug connection received while not in passive mode.\n"
2121 )
2122 )
2123 EricMessageBox.critical(
2124 None,
2125 self.tr("Debug Client Connection"),
2126 self.tr(
2127 "Passive debug client connection received while not in passive"
2128 " mode. Enable this mode on the 'Debugger General' configuration"
2129 " page or in the project debugger configuration. The connection"
2130 " will be rejected."
2131 ),
2132 )
2133 self.shutdownServer()
2134 self.startClient(False, forProject=self.__forProject)
2116 2135
2117 def __passiveShutDown(self): 2136 def __passiveShutDown(self):
2118 """ 2137 """
2119 Private method to shut down a passive debug connection. 2138 Private method to shut down a passive debug connection.
2120 """ 2139 """

eric ide

mercurial