X-Git-Url: http://git.phpeclipse.com 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..9b7b206 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 @@ -211,8 +211,9 @@ public class XDebugTarget extends XDebugElement implements IDebugTarget, IDebugE public void resume() throws DebugException { if (fDebugConnection != null) { fThread.setBreakpoints(null); + resumed(DebugEvent.RESUME); fDebugConnection.run(); - } + } } /** @@ -402,10 +403,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(); @@ -483,6 +489,16 @@ public class XDebugTarget extends XDebugElement implements IDebugTarget, IDebugE } } + public Node eval(String expression) { + int id = fDebugConnection.eval(expression); + XDebugResponse response = getResponse(id); + + Node evalResponse = response.getParentNode(); + Node evalProperty = evalResponse.getFirstChild(); + + return evalProperty; + } + public void handleDebugEvents(DebugEvent[] events) { for (int i = 0; i < events.length; i++) { DebugEvent event = events[i]; @@ -536,6 +552,8 @@ public class XDebugTarget extends XDebugElement implements IDebugTarget, IDebugE return; } + resumed(DebugEvent.TERMINATE); + stopListener(); fDebugConnection.close(); @@ -612,11 +630,15 @@ public class XDebugTarget extends XDebugElement implements IDebugTarget, IDebugE return response.getParentNode(); } + public void stop() { + fDebugConnection.stop(); + } + protected IBreakpoint breakpointHit(Node node) { Node child = node.getFirstChild(); if (child.getNodeName().equals("stack")) { int lineNumber = Integer.parseInt(PHPDebugUtils.getAttributeValue(child, "lineno")); - String filename=PHPDebugUtils.getAttributeValue(child, "filename"); + String filename = PHPDebugUtils.getAttributeValue(child, "filename"); IBreakpoint[] breakpoints = XDebugCorePlugin.getBreakpoints(); for (int i = 0; i < breakpoints.length; i++) { IBreakpoint breakpoint = breakpoints[i];