From: incastrix Date: Wed, 20 Feb 2008 01:54:49 +0000 (+0000) Subject: Fix wrong node parsing. X-Git-Url: http://secure.phpeclipse.com?hp=598dec4d4ae0141b9bf1a7f41e56c54b5d218b3f Fix wrong node parsing. --- diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugWatchExpressionDelegate.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugWatchExpressionDelegate.java index 313bef5..a14bc08 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugWatchExpressionDelegate.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugWatchExpressionDelegate.java @@ -31,9 +31,10 @@ public class XDebugWatchExpressionDelegate implements IWatchExpressionDelegate { XDebugResponse response = s.getResponse(evalCommand); - Node evalNode = response.getParentNode(); - XDebugVariable var = new XDebugVariable(null, evalNode); - XDebugVariable result[] = {var}; + Node evalResponse = response.getParentNode(); + Node evalProperty = evalResponse.getFirstChild(); + XDebugVariable variable = new XDebugVariable(null, evalProperty); + XDebugVariable result[] = {variable}; if (result.length == 0) { x = new XDebugWatchExpressionResult(expression, null, null);