public void resume() throws DebugException {
if (fDebugConnection != null) {
fThread.setBreakpoints(null);
+ resumed(DebugEvent.RESUME);
fDebugConnection.run();
- }
+ }
}
/**
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();
}
}
+ 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];
return;
}
+ resumed(DebugEvent.TERMINATE);
+
stopListener();
fDebugConnection.close();
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];