Search in sources :

Example 1 with XValueChildrenList

use of com.intellij.xdebugger.frame.XValueChildrenList in project intellij-community by JetBrains.

the class PydevConsoleCommunication method parseVars.

private XValueChildrenList parseVars(String ret, PyDebugValue parent) throws PyDebuggerException {
    final List<PyDebugValue> values = ProtocolParser.parseValues(ret, this);
    XValueChildrenList list = new XValueChildrenList(values.size());
    for (PyDebugValue v : values) {
        list.add(v.getName(), parent != null ? v.setParent(parent) : v);
    }
    return list;
}
Also used : XValueChildrenList(com.intellij.xdebugger.frame.XValueChildrenList)

Example 2 with XValueChildrenList

use of com.intellij.xdebugger.frame.XValueChildrenList in project intellij-community by JetBrains.

the class PyDebugProcess method loadFrame.

@Override
@Nullable
public XValueChildrenList loadFrame() throws PyDebuggerException {
    final PyStackFrame frame = currentFrame();
    //do not reload frame every time it is needed, because due to bug in pdb, reloading frame clears all variable changes
    if (!myStackFrameCache.containsKey(frame.getThreadFrameId())) {
        XValueChildrenList values = myDebugger.loadFrame(frame.getThreadId(), frame.getFrameId());
        myStackFrameCache.put(frame.getThreadFrameId(), values);
    }
    return applyNewValue(myStackFrameCache.get(frame.getThreadFrameId()), frame.getThreadFrameId());
}
Also used : XValueChildrenList(com.intellij.xdebugger.frame.XValueChildrenList) Nullable(org.jetbrains.annotations.Nullable)

Example 3 with XValueChildrenList

use of com.intellij.xdebugger.frame.XValueChildrenList in project intellij-community by JetBrains.

the class RemoteDebugger method loadReferrers.

@Override
public void loadReferrers(final String threadId, final String frameId, final PyReferringObjectsValue var, final PyDebugCallback<XValueChildrenList> callback) {
    RunCustomOperationCommand cmd = new GetReferrersCommand(this, threadId, frameId, var);
    cmd.execute(new PyDebugCallback<List<PyDebugValue>>() {

        @Override
        public void ok(List<PyDebugValue> value) {
            XValueChildrenList list = new XValueChildrenList();
            for (PyDebugValue v : value) {
                list.add(v);
            }
            callback.ok(list);
        }

        @Override
        public void error(PyDebuggerException exception) {
            callback.error(exception);
        }
    });
}
Also used : XValueChildrenList(com.intellij.xdebugger.frame.XValueChildrenList) XValueChildrenList(com.intellij.xdebugger.frame.XValueChildrenList)

Example 4 with XValueChildrenList

use of com.intellij.xdebugger.frame.XValueChildrenList in project intellij-elixir by KronicDeth.

the class ElixirPortXValue method computeChildren.

@Override
public void computeChildren(@NotNull XCompositeNode node) {
    XValueChildrenList childrenList = new XValueChildrenList(2);
    addNamedChild(childrenList, getValue().node(), "node");
    addNamedChild(childrenList, getValue().id(), "id");
    node.addChildren(childrenList, true);
}
Also used : XValueChildrenList(com.intellij.xdebugger.frame.XValueChildrenList)

Example 5 with XValueChildrenList

use of com.intellij.xdebugger.frame.XValueChildrenList in project intellij-elixir by KronicDeth.

the class ElixirRefXValue method computeChildren.

@Override
public void computeChildren(@NotNull XCompositeNode node) {
    int[] ids = getValue().ids();
    XValueChildrenList children = new XValueChildrenList(1 + ids.length);
    addNamedChild(children, getValue().node(), "node");
    for (int i = 0; i < ids.length; i++) {
        addNamedChild(children, ids[i], "id" + i);
    }
    node.addChildren(children, true);
}
Also used : XValueChildrenList(com.intellij.xdebugger.frame.XValueChildrenList)

Aggregations

XValueChildrenList (com.intellij.xdebugger.frame.XValueChildrenList)23 Variable (org.ballerinalang.plugins.idea.debugger.dto.Variable)3 PerlValueDescriptor (com.perl5.lang.perl.idea.run.debugger.protocol.PerlValueDescriptor)2 DlvApi (com.goide.dlv.protocol.DlvApi)1 Variable (com.google.api.services.clouddebugger.v2.model.Variable)1 JsonDeserializationContext (com.google.gson.JsonDeserializationContext)1 JsonObject (com.google.gson.JsonObject)1 Project (com.intellij.openapi.project.Project)1 XLineBreakpoint (com.intellij.xdebugger.breakpoints.XLineBreakpoint)1 XValue (com.intellij.xdebugger.frame.XValue)1 PyDebugValue (com.jetbrains.python.debugger.PyDebugValue)1 PerlDebugThread (com.perl5.lang.perl.idea.run.debugger.PerlDebugThread)1 PerlDebuggingEventBreakpoint (com.perl5.lang.perl.idea.run.debugger.protocol.PerlDebuggingEventBreakpoint)1 PerlDebuggingTransactionHandler (com.perl5.lang.perl.idea.run.debugger.protocol.PerlDebuggingTransactionHandler)1 PerlValueRequestDescriptor (com.perl5.lang.perl.idea.run.debugger.protocol.PerlValueRequestDescriptor)1 PerlXMainGroup (com.perl5.lang.perl.idea.run.debugger.values.PerlXMainGroup)1 PerlXNamedValue (com.perl5.lang.perl.idea.run.debugger.values.PerlXNamedValue)1 PerlXValueGroup (com.perl5.lang.perl.idea.run.debugger.values.PerlXValueGroup)1 IOException (java.io.IOException)1 HashMap (java.util.HashMap)1