363 |
363 |
364 def handleClientStack(self, stack): |
364 def handleClientStack(self, stack): |
365 """ |
365 """ |
366 Public slot to show the call stack of the program being debugged. |
366 Public slot to show the call stack of the program being debugged. |
367 """ |
367 """ |
|
368 block = self.stackComboBox.blockSignals(True) |
368 self.framenr = 0 |
369 self.framenr = 0 |
369 self.stackComboBox.clear() |
370 self.stackComboBox.clear() |
370 self.currentStack = stack |
371 self.currentStack = stack |
371 self.sourceButton.setEnabled(len(stack) > 0) |
372 self.sourceButton.setEnabled(len(stack) > 0) |
372 for s in stack: |
373 for s in stack: |
373 # just show base filename to make it readable |
374 # just show base filename to make it readable |
374 s = (os.path.basename(s[0]), s[1], s[2]) |
375 s = (os.path.basename(s[0]), s[1], s[2]) |
375 self.stackComboBox.addItem('{0}:{1}:{2}'.format(*s)) |
376 self.stackComboBox.addItem('{0}:{1}:{2}'.format(*s)) |
|
377 self.stackComboBox.blockSignals(block) |
376 |
378 |
377 def setVariablesFilter(self, globalsFilter, localsFilter): |
379 def setVariablesFilter(self, globalsFilter, localsFilter): |
378 """ |
380 """ |
379 Public slot to set the local variables filter. |
381 Public slot to set the local variables filter. |
380 |
382 |