src/eric7/Debugger/DebugViewer.py

branch
eric7
changeset 9397
a415cb83dafb
parent 9383
1d9a71952123
child 9413
80c06d472826
equal deleted inserted replaced
9396:06699e5600a3 9397:a415cb83dafb
635 """ 635 """
636 if self.debugServer.isDebugging(): 636 if self.debugServer.isDebugging():
637 filterStr = self.globalsFilterEdit.text() 637 filterStr = self.globalsFilterEdit.text()
638 if self.globalsFilterTypeCombo.currentIndex() == 0: 638 if self.globalsFilterTypeCombo.currentIndex() == 0:
639 filterStr = "~ {0}".format(filterStr) 639 filterStr = "~ {0}".format(filterStr)
640 self.globalsViewer.clear()
640 self.debugServer.remoteClientSetFilter( 641 self.debugServer.remoteClientSetFilter(
641 self.getSelectedDebuggerId(), 1, filterStr 642 self.getSelectedDebuggerId(), 1, filterStr
642 ) 643 )
643 self.debugServer.remoteClientVariables( 644 self.debugServer.remoteClientVariables(
644 self.getSelectedDebuggerId(), 2, self.__globalsFilter 645 self.getSelectedDebuggerId(), 1, self.__globalsFilter
645 ) 646 )
646 647
647 def setLocalsFilter(self): 648 def setLocalsFilter(self):
648 """ 649 """
649 Public slot to set the local variable filter. 650 Public slot to set the local variable filter.
650 """ 651 """
651 if self.debugServer.isDebugging(): 652 if self.debugServer.isDebugging():
652 filterStr = self.localsFilterEdit.text() 653 filterStr = self.localsFilterEdit.text()
653 if self.localsFilterTypeCombo.currentIndex() == 0: 654 if self.localsFilterTypeCombo.currentIndex() == 0:
654 filterStr = "~ {0}".format(filterStr) 655 filterStr = "~ {0}".format(filterStr)
656 self.localsViewer.clear()
655 self.debugServer.remoteClientSetFilter( 657 self.debugServer.remoteClientSetFilter(
656 self.getSelectedDebuggerId(), 0, filterStr 658 self.getSelectedDebuggerId(), 0, filterStr
657 ) 659 )
658 if self.currentStack: 660 if self.currentStack:
659 self.debugServer.remoteClientVariables( 661 self.debugServer.remoteClientVariables(
664 """ 666 """
665 Public slot to refresh the local and global variables lists. 667 Public slot to refresh the local and global variables lists.
666 """ 668 """
667 if self.debugServer.isDebugging(): 669 if self.debugServer.isDebugging():
668 self.debugServer.remoteClientVariables( 670 self.debugServer.remoteClientVariables(
669 self.getSelectedDebuggerId(), 2, self.__globalsFilter 671 self.getSelectedDebuggerId(), 1, self.__globalsFilter
670 ) 672 )
671 if self.currentStack: 673 if self.currentStack:
672 self.debugServer.remoteClientVariables( 674 self.debugServer.remoteClientVariables(
673 self.getSelectedDebuggerId(), 0, self.__localsFilter, self.framenr 675 self.getSelectedDebuggerId(), 0, self.__localsFilter, self.framenr
674 ) 676 )

eric ide

mercurial