183 # Connect the signals emitted by the project |
183 # Connect the signals emitted by the project |
184 project.projectOpened.connect(self.__projectOpened) |
184 project.projectOpened.connect(self.__projectOpened) |
185 project.newProject.connect(self.__projectOpened) |
185 project.newProject.connect(self.__projectOpened) |
186 project.projectClosed.connect(self.__projectClosed) |
186 project.projectClosed.connect(self.__projectClosed) |
187 |
187 |
|
188 # Connect the shutdown signal |
|
189 ui.shutdown.connect(self.__shutdown) |
|
190 |
188 # Set a flag for the passive debug mode |
191 # Set a flag for the passive debug mode |
189 self.passive = Preferences.getDebugger("PassiveDbgEnabled") |
192 self.passive = Preferences.getDebugger("PassiveDbgEnabled") |
190 |
193 |
191 def showNotification( |
194 def showNotification( |
192 self, notification, kind=NotificationTypes.INFORMATION, timeout=None |
195 self, notification, kind=NotificationTypes.INFORMATION, timeout=None |
1170 "DebugInfo/MultiprocessNoDebugHistory", self.multiprocessNoDebugHistory |
1173 "DebugInfo/MultiprocessNoDebugHistory", self.multiprocessNoDebugHistory |
1171 ) |
1174 ) |
1172 |
1175 |
1173 self.debugViewer.breakpointViewer.clearHistories() |
1176 self.debugViewer.breakpointViewer.clearHistories() |
1174 |
1177 |
1175 def shutdown(self): |
1178 def __shutdown(self): |
1176 """ |
1179 """ |
1177 Public method to perform shutdown actions. |
1180 Private method to perform shutdown actions. |
1178 """ |
1181 """ |
1179 # Just save the 10 most recent entries |
1182 # Just save the 10 most recent entries |
1180 del self.scriptsHistory[10:] |
1183 del self.scriptsHistory[10:] |
1181 del self.argvHistory[10:] |
1184 del self.argvHistory[10:] |
1182 del self.wdHistory[10:] |
1185 del self.wdHistory[10:] |