* @param variable
* The variable name
* @return
*/
protected String getValue(PHPDebugTarget debugTarget, String variable) {
DefaultExpressionsManager expressionManager = debugTarget
.getExpressionManager();
Expression expression = expressionManager.buildExpression(variable);
// Get the value from the debugger
debugTarget.getExpressionManager().getExpressionValue(expression, 1);
expressionManager.update(expression, 1);
String value = expression.getValue().getValueAsString();
if (value != null && value.length() == 0) {
value = "Empty"; //$NON-NLS-1$
return value;