*/
package net.sourceforge.phpeclipse.xdebug.php.model;
-import java.net.MalformedURLException;
-import java.net.URL;
-
import net.sourceforge.phpeclipse.xdebug.core.PHPDebugUtils;
import net.sourceforge.phpeclipse.xdebug.core.xdebug.ResponseListener.XDebugResponse;
Node response = lastResponse.getParentNode();
NodeList frames = response.getChildNodes();
XDebugStackFrame[] theFrames = new XDebugStackFrame[frames.getLength()];
+
for (int i = 0; i < frames.getLength(); i++) {
Node stackNode = frames.item(i);
- XDebugStackFrame frame = new XDebugStackFrame(this/*fThread*/, i);
- String level =PHPDebugUtils.getAttributeValue(stackNode,"level");
- if (!"".equals(level))
- frame.setLevel(Integer.parseInt(level));
-
- frame.setType(PHPDebugUtils.getAttributeValue(stackNode,"type"));
String fileName=PHPDebugUtils.unescapeString(PHPDebugUtils.getAttributeValue(stackNode,"filename"));
- String lineNo=PHPDebugUtils.getAttributeValue(stackNode,"lineno");
+ String lineNo = PHPDebugUtils.getAttributeValue(stackNode,"lineno");
- if (!"".equals(lineNo))
- frame.setLineNumber(Integer.parseInt(lineNo));
+ XDebugStackFrame frame = new XDebugStackFrame(this/*fThread*/, i, /*type*/PHPDebugUtils.getAttributeValue(stackNode,"type"), /*lineno*/Integer.parseInt(lineNo), /*where*/PHPDebugUtils.getAttributeValue(stackNode,"where"), fileName);
- frame.setWhere(PHPDebugUtils.getAttributeValue(stackNode,"where"));
-
- try {
- frame.setFullName(new URL(fileName));
- } catch (MalformedURLException e) {
- e.printStackTrace();
- }
-
frame.incrementStepCounter();
theFrames[i] = frame;
* @see org.eclipse.debug.core.model.ISuspendResume#isSuspended()
*/
public boolean isSuspended() {
-// return fTarget.isSuspended();
return getDebugTarget().isSuspended();
}
* @see org.eclipse.debug.core.model.ISuspendResume#resume()
*/
public void resume() throws DebugException {
- fBreakpoints=null;
+ fBreakpoints = null;
getDebugTarget().resume();
}
* @see org.eclipse.debug.core.model.IStep#stepInto()
*/
public void stepInto() throws DebugException {
- fBreakpoints=null;
+ fBreakpoints = null;
((XDebugTarget) getDebugTarget()).step_into();
}
* @see org.eclipse.debug.core.model.IStep#stepOver()
*/
public void stepOver() throws DebugException {
- fBreakpoints=null;
+ fBreakpoints = null;
((XDebugTarget) getDebugTarget()).step_over();
}
* @see org.eclipse.debug.core.model.IStep#stepReturn()
*/
public void stepReturn() throws DebugException {
- fBreakpoints=null;
+ fBreakpoints = null;
((XDebugTarget) getDebugTarget()).step_out();
}