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);
}
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);
}
}
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);
}
}
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);
}
}
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();
}
Aggregations