fix bug 678.
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.core / src / net / sourceforge / phpeclipse / xdebug / php / model / XDebugWatchExpressionDelegate.java
index 313bef5..a14bc08 100644 (file)
@@ -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);