Fix wrong node parsing.
authorincastrix <incastrix>
Wed, 20 Feb 2008 01:54:49 +0000 (01:54 +0000)
committerincastrix <incastrix>
Wed, 20 Feb 2008 01:54:49 +0000 (01:54 +0000)
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);