From: incastrix Date: Mon, 24 Mar 2008 20:56:43 +0000 (+0000) Subject: fix first part of bug #677, for second see feature request #688. X-Git-Url: http://secure.phpeclipse.com fix first part of bug #677, for second see feature request #688. --- diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugArrayValue.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugArrayValue.java index f0117cd..cded934 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugArrayValue.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugArrayValue.java @@ -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) { diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugTarget.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugTarget.java index ec0ca16..43f7c9c 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugTarget.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugTarget.java @@ -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();