setValue(jsValue);
}
public void setValue(String expression) throws DebugException {
// TODO: support setters explicitly.
ResultOrException newValueOrException = evaluateExpressionString(expression);
if (newValueOrException.getResult() == null) {
String message = getExceptionMessage(newValueOrException.getException(),
getEvaluateContext().getJsEvaluateContext());
Status status = new Status(IStatus.ERROR, ChromiumDebugPlugin.PLUGIN_ID,
DebugException.TARGET_REQUEST_FAILED,
"JavaScript compile exception: " + message, null);
throw new DebugException(status);
} else {
setValue(newValueOrException.getResult());
}
}