Debugger/DebugViewer.py

changeset 2766
c413e9eeaf95
parent 2723
f6ad272bf486
child 2791
a9577f248f04
child 2824
858412c29c34
equal deleted inserted replaced
2765:7be992349167 2766:c413e9eeaf95
274 """ 274 """
275 Public method to reset the SBVviewer. 275 Public method to reset the SBVviewer.
276 """ 276 """
277 self.globalsViewer.handleResetUI() 277 self.globalsViewer.handleResetUI()
278 self.localsViewer.handleResetUI() 278 self.localsViewer.handleResetUI()
279 self.stackComboBox.clear()
280 self.sourceButton.setEnabled(False) 279 self.sourceButton.setEnabled(False)
281 self.currentStack = None 280 self.currentStack = None
281 self.stackComboBox.clear()
282 self.__threadList.clear() 282 self.__threadList.clear()
283 if self.embeddedShell: 283 if self.embeddedShell:
284 self.__tabWidget.setCurrentWidget(self.shellAssembly) 284 self.__tabWidget.setCurrentWidget(self.shellAssembly)
285 else: 285 else:
286 if self.embeddedBrowser: 286 if self.embeddedBrowser:
409 409
410 def __showSource(self): 410 def __showSource(self):
411 """ 411 """
412 Private slot to handle the source button press to show the selected file. 412 Private slot to handle the source button press to show the selected file.
413 """ 413 """
414 s = self.currentStack[self.stackComboBox.currentIndex()] 414 index = self.stackComboBox.currentIndex()
415 self.sourceFile.emit(s[0], int(s[1])) 415 if index > -1 and self.currentStack:
416 s = self.currentStack[index]
417 self.sourceFile.emit(s[0], int(s[1]))
416 418
417 def __frameSelected(self, frmnr): 419 def __frameSelected(self, frmnr):
418 """ 420 """
419 Private slot to handle the selection of a new stack frame number. 421 Private slot to handle the selection of a new stack frame number.
420 422

eric ide

mercurial