Search in sources :

Example 1 with PyDebugValue

use of com.jetbrains.python.debugger.PyDebugValue in project intellij-community by JetBrains.

the class PyDataViewerPanel method apply.

public void apply(String name) {
    myErrorLabel.setVisible(false);
    PyDebugValue debugValue = getDebugValue(name);
    if (debugValue == null) {
        return;
    }
    apply(debugValue);
}
Also used : PyDebugValue(com.jetbrains.python.debugger.PyDebugValue)

Example 2 with PyDebugValue

use of com.jetbrains.python.debugger.PyDebugValue in project intellij-community by JetBrains.

the class PyDataViewerPanel method updateDebugValue.

private void updateDebugValue(@NotNull AsyncArrayTableModel model) {
    PyDebugValue oldValue = model.getDebugValue();
    if (!oldValue.isTemporary()) {
        return;
    }
    PyDebugValue newValue = getDebugValue(mySliceTextField.getText());
    if (newValue != null) {
        model.setDebugValue(newValue);
    }
}
Also used : PyDebugValue(com.jetbrains.python.debugger.PyDebugValue)

Example 3 with PyDebugValue

use of com.jetbrains.python.debugger.PyDebugValue in project intellij-community by JetBrains.

the class EvaluateCommand method processResponse.

@Override
protected void processResponse(final ProtocolFrame response) throws PyDebuggerException {
    super.processResponse(response);
    final PyDebugValue value = ProtocolParser.parseValue(response.getPayload(), myDebugProcess);
    myValue = value.setName((myExecute ? "" : myExpression));
    if (!myTempName.isEmpty()) {
        myValue.setTempName(myTempName);
    }
}
Also used : PyDebugValue(com.jetbrains.python.debugger.PyDebugValue)

Example 4 with PyDebugValue

use of com.jetbrains.python.debugger.PyDebugValue in project intellij-community by JetBrains.

the class GetDescriptionCommand method processResponse.

@Override
protected void processResponse(ProtocolFrame response) throws PyDebuggerException {
    super.processResponse(response);
    try {
        PyDebugValue pyDebugValue = ProtocolParser.parseValue(response.getPayload(), getDebugger().getDebugProcess());
        result = pyDebugValue.getValue();
    } catch (Exception e) {
        throw new PyDebuggerException("cant obtain completions", e);
    }
}
Also used : PyDebugValue(com.jetbrains.python.debugger.PyDebugValue) PyDebuggerException(com.jetbrains.python.debugger.PyDebuggerException) PyDebuggerException(com.jetbrains.python.debugger.PyDebuggerException)

Example 5 with PyDebugValue

use of com.jetbrains.python.debugger.PyDebugValue in project intellij-community by JetBrains.

the class GetVariableCommand method composeName.

public static String composeName(final PyDebugValue var) {
    final StringBuilder sb = new StringBuilder();
    PyDebugValue p = var;
    while (p != null) {
        if (sb.length() > 0) {
            sb.insert(0, '\t');
        }
        if (p.getId() != null) {
            sb.insert(0, BY_ID).insert(0, '\t').insert(0, p.getId());
            break;
        } else {
            sb.insert(0, p.getTempName().replaceAll("\t", TAB_CHAR));
        }
        p = p.getParent();
    }
    return sb.toString();
}
Also used : PyDebugValue(com.jetbrains.python.debugger.PyDebugValue)

Aggregations

PyDebugValue (com.jetbrains.python.debugger.PyDebugValue)9 Project (com.intellij.openapi.project.Project)1 XValueChildrenList (com.intellij.xdebugger.frame.XValueChildrenList)1 XValueNodeImpl (com.intellij.xdebugger.impl.ui.tree.nodes.XValueNodeImpl)1 PyDebuggerException (com.jetbrains.python.debugger.PyDebuggerException)1 TreePath (javax.swing.tree.TreePath)1