From 4ef1d2e1f6a07cb54c39cadaee202e31a303611c Mon Sep 17 00:00:00 2001 From: incastrix Date: Wed, 20 Feb 2008 01:54:49 +0000 Subject: [PATCH] Fix wrong node parsing. --- .../php/model/XDebugWatchExpressionDelegate.java | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) 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); -- 1.7.1