384 Public slot to show the call stack of the program being debugged. |
384 Public slot to show the call stack of the program being debugged. |
385 |
385 |
386 @param stack list of tuples with call stack data (file name, line number, |
386 @param stack list of tuples with call stack data (file name, line number, |
387 function name, formatted argument/values list) |
387 function name, formatted argument/values list) |
388 """ |
388 """ |
|
389 block = self.stackComboBox.blockSignals(True) |
389 self.framenr = 0 |
390 self.framenr = 0 |
390 self.stackComboBox.clear() |
391 self.stackComboBox.clear() |
391 self.currentStack = stack |
392 self.currentStack = stack |
392 self.sourceButton.setEnabled(len(stack) > 0) |
393 self.sourceButton.setEnabled(len(stack) > 0) |
393 for s in stack: |
394 for s in stack: |
394 # just show base filename to make it readable |
395 # just show base filename to make it readable |
395 s = (os.path.basename(s[0]), s[1], s[2]) |
396 s = (os.path.basename(s[0]), s[1], s[2]) |
396 self.stackComboBox.addItem('{0}:{1}:{2}'.format(*s)) |
397 self.stackComboBox.addItem('{0}:{1}:{2}'.format(*s)) |
|
398 self.stackComboBox.blockSignals(block) |
397 |
399 |
398 def setVariablesFilter(self, globalsFilter, localsFilter): |
400 def setVariablesFilter(self, globalsFilter, localsFilter): |
399 """ |
401 """ |
400 Public slot to set the local variables filter. |
402 Public slot to set the local variables filter. |
401 |
403 |