use of org.eclipse.che.plugin.zdb.server.variables.ZendDbgVariable in project che by eclipse.
the class ZendDebugger method setValue.
@Override
public void setValue(Variable variable) throws DebuggerException {
Variable matchingVariable = debugVariableStorage.findVariable(variable.getVariablePath());
((ZendDbgVariable) matchingVariable).setValue(variable.getValue());
}
use of org.eclipse.che.plugin.zdb.server.variables.ZendDbgVariable in project che by eclipse.
the class ZendDebugger method sendGetVariables.
private void sendGetVariables() {
ZendDbgVariables zendVariablesExpression = new ZendDbgVariables(debugExpressionEvaluator);
zendVariablesExpression.evaluate();
List<IDbgVariable> variables = new ArrayList<>();
int variableId = 0;
for (IDbgExpression zendVariableExpression : zendVariablesExpression.getChildren()) {
if (VariablesStorage.GLOBALS_VARIABLE.equalsIgnoreCase(zendVariableExpression.getExpression()))
continue;
IDbgVariable variable = new ZendDbgVariable(new VariablePathImpl(String.valueOf(variableId++)), zendVariableExpression);
if (ZendDbgVariableUtils.isThis(zendVariableExpression.getExpression())) {
// $this always on top
variables.add(0, variable);
} else {
variables.add(variable);
}
}
debugVariableStorage = new VariablesStorage(variables);
}
Aggregations