fix first part of bug #677, for second see feature request #688.
authorincastrix <incastrix>
Mon, 24 Mar 2008 20:56:43 +0000 (20:56 +0000)
committerincastrix <incastrix>
Mon, 24 Mar 2008 20:56:43 +0000 (20:56 +0000)
net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugArrayValue.java
net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugTarget.java

index f0117cd..cded934 100644 (file)
@@ -21,7 +21,11 @@ public class XDebugArrayValue extends XDebugAbstractValue {
        }
 
        public void renderValueString(String data) {
-               fValueString= data +" element(s)";
+               if (data.isEmpty()) {
+                       fValueString = /*"Array */"empty";
+               } else {
+                       fValueString = /*"Array " + */data + " element(s)";                     
+               }
        }
 
        public boolean verifyValue(String expression) {
index ec0ca16..43f7c9c 100644 (file)
@@ -402,10 +402,15 @@ public class XDebugTarget extends XDebugElement implements IDebugTarget, IDebugE
                System.out.println("max depth:"+a2);*/
                
                
-               int id1 = fDebugConnection.featureSet("max_depth", "100" );
+               int id1 = fDebugConnection.featureSet("max_depth", "1024" );
                XDebugResponse response1 = getResponse(id1);
                if (response1.getAttributeValue("success").equals("1") ) {
-                       System.out.println("Set depth to 100 (hack)");
+                       System.out.println("Set depth to 1024 (hack)");
+               }
+               int id2 = fDebugConnection.featureSet("max_children", "1024" );
+               XDebugResponse response2 = getResponse(id2);
+               if (response2.getAttributeValue("success").equals("1") ) {
+                       System.out.println("Set children to 1024 (hack)");
                }
                
                installDeferredBreakpoints();