protected List<String> getCompoundValueChildren(PyDebugValue value) throws PyDebuggerException { XValueChildrenList list = myCommunication.loadVariable(value); List<String> result = Lists.newArrayList(); for (int i = 0; i < list.size(); i++) { result.add(((PyDebugValue) list.getValue(i)).getValue()); } return result; }
protected PyDebugValue getValue(String varName) throws PyDebuggerException { XValueChildrenList l = myCommunication.loadFrame(); if (l == null) { return null; } for (int i = 0; i < l.size(); i++) { String name = l.getName(i); if (varName.equals(name)) { return (PyDebugValue) l.getValue(i); } } return null; }