Debugger/VariablesViewer.py

changeset 5587
ea526b78ee6c
parent 5389
9b1c800daff3
child 5624
cdd346d8858b
equal deleted inserted replaced
5586:0e5421d679e7 5587:ea526b78ee6c
7 Module implementing the variables viewer widget. 7 Module implementing the variables viewer widget.
8 """ 8 """
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 try: 11 try:
12 str = unicode 12 str = unicode # __IGNORE_WARNING_M131__
13 except NameError: 13 except NameError:
14 pass 14 pass
15 15
16 from PyQt5.QtCore import Qt, QRegExp, qVersion, QCoreApplication 16 from PyQt5.QtCore import Qt, QRegExp, qVersion, QCoreApplication
17 from PyQt5.QtWidgets import QTreeWidget, QTreeWidgetItem, QAbstractItemView, \ 17 from PyQt5.QtWidgets import QTreeWidget, QTreeWidgetItem, QAbstractItemView, \
236 while par is not None: 236 while par is not None:
237 pathlist.insert(0, par._buildKey()) 237 pathlist.insert(0, par._buildKey())
238 par = par.parent() 238 par = par.parent()
239 239
240 # step 2: request the variable from the debugger 240 # step 2: request the variable from the debugger
241 filter = e5App().getObject("DebugUI").variablesFilter(self.globalScope) 241 variablesFilter = e5App().getObject("DebugUI").variablesFilter(
242 self.globalScope)
242 e5App().getObject("DebugServer").remoteClientVariable( 243 e5App().getObject("DebugServer").remoteClientVariable(
243 self.globalScope, filter, pathlist, self.framenr) 244 self.globalScope, variablesFilter, pathlist, self.framenr)
244 245
245 246
246 class ArrayElementVarItem(VariableItem): 247 class ArrayElementVarItem(VariableItem):
247 """ 248 """
248 Class implementing a VariableItem that represents an array element. 249 Class implementing a VariableItem that represents an array element.

eric ide

mercurial