コード例 #1
0
 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;
 }
コード例 #2
0
  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;
  }