43 a breakpoint viewer, a watch expression viewer and the exception logger. Additionally |
43 a breakpoint viewer, a watch expression viewer and the exception logger. Additionally |
44 a list of all threads is shown. |
44 a list of all threads is shown. |
45 |
45 |
46 @signal sourceFile(string, int) emitted to open a source file at a line |
46 @signal sourceFile(string, int) emitted to open a source file at a line |
47 """ |
47 """ |
|
48 sourceFile = pyqtSignal(str, int) |
|
49 |
48 def __init__(self, debugServer, docked, vm, parent = None, |
50 def __init__(self, debugServer, docked, vm, parent = None, |
49 embeddedShell = True, embeddedBrowser = True): |
51 embeddedShell = True, embeddedBrowser = True): |
50 """ |
52 """ |
51 Constructor |
53 Constructor |
52 |
54 |
184 self.breakpointViewer = BreakPointViewer() |
186 self.breakpointViewer = BreakPointViewer() |
185 self.breakpointViewer.setModel(self.debugServer.getBreakPointModel()) |
187 self.breakpointViewer.setModel(self.debugServer.getBreakPointModel()) |
186 index = self.__tabWidget.addTab(self.breakpointViewer, |
188 index = self.__tabWidget.addTab(self.breakpointViewer, |
187 UI.PixmapCache.getIcon("breakpoints.png"), '') |
189 UI.PixmapCache.getIcon("breakpoints.png"), '') |
188 self.__tabWidget.setTabToolTip(index, self.breakpointViewer.windowTitle()) |
190 self.__tabWidget.setTabToolTip(index, self.breakpointViewer.windowTitle()) |
189 self.connect(self.breakpointViewer, SIGNAL("sourceFile"), |
191 self.breakpointViewer.sourceFile.connect(self.sourceFile) |
190 self, SIGNAL("sourceFile")) |
|
191 |
192 |
192 # add the watch expression viewer |
193 # add the watch expression viewer |
193 self.watchpointViewer = WatchPointViewer() |
194 self.watchpointViewer = WatchPointViewer() |
194 self.watchpointViewer.setModel(self.debugServer.getWatchPointModel()) |
195 self.watchpointViewer.setModel(self.debugServer.getWatchPointModel()) |
195 index = self.__tabWidget.addTab(self.watchpointViewer, |
196 index = self.__tabWidget.addTab(self.watchpointViewer, |
343 def __showSource(self): |
344 def __showSource(self): |
344 """ |
345 """ |
345 Private slot to handle the source button press to show the selected file. |
346 Private slot to handle the source button press to show the selected file. |
346 """ |
347 """ |
347 s = self.currentStack[self.stackComboBox.currentIndex()] |
348 s = self.currentStack[self.stackComboBox.currentIndex()] |
348 self.emit(SIGNAL('sourceFile'), s[0], int(s[1])) |
349 self.sourceFile.emit(s[0], int(s[1])) |
349 |
350 |
350 def __frameSelected(self, frmnr): |
351 def __frameSelected(self, frmnr): |
351 """ |
352 """ |
352 Private slot to handle the selection of a new stack frame number. |
353 Private slot to handle the selection of a new stack frame number. |
353 |
354 |