import java.net.URL;
import net.sourceforge.phpeclipse.xdebug.core.PHPDebugUtils;
-//import net.sourceforge.phpeclipse.xdebug.core.xdebug.ResponseListener.DebugResponse;
import net.sourceforge.phpeclipse.xdebug.core.xdebug.ResponseListener.XDebugResponse;
import org.eclipse.debug.core.DebugEvent;
* Window - Preferences - Java - Code Style - Code Templates
*/
public class XDebugThread extends XDebugElement implements IThread, IDebugEventSetListener {
- private IStackFrame[] fStackFrames;
+ private XDebugStackFrame[] fStackFrames;
private IBreakpoint[] fBreakpoints;
}
public IStackFrame[] getStackFrames() throws DebugException {
- IStackFrame[] newStackFrames = null;
+ XDebugStackFrame[] newStackFrames = null;
if (isSuspended()) {
if (fStepCount > fCurrentStepCount) {
newStackFrames = _getStackFrames(dr);
for (int i = 0; i < newStackFrames.length; i++) {
- ((XDebugStackFrame)newStackFrames[i]).getVariables();
+ newStackFrames[i].getVariables();
}
if (fStackFrames != null) {
int delta = newStackFrames.length - fStackFrames.length + 1;
for (int i = fStackFrames.length - 1; i >= 0; i--) {
- if (((XDebugStackFrame) fStackFrames[i]).equals(((XDebugStackFrame) newStackFrames[newStackFrames.length - delta]))) {
+ if (fStackFrames[i].equals(newStackFrames[newStackFrames.length - delta])) {
int b = 2; b++;
//((XDebugStackFrame) newStackFrames[newStackFrames.length - delta]).evaluateChange((XDebugStackFrame) fStackFrames[i]);
- } else if (((XDebugStackFrame) fStackFrames[i]).isSameStackFrame(newStackFrames[newStackFrames.length - delta])) {
+ } else if (fStackFrames[i].isSameStackFrame(newStackFrames[newStackFrames.length - delta])) {
+ int b = 2; b++;
//((XDebugStackFrame) newStackFrames[newStackFrames.length - delta]).evaluateChange((XDebugStackFrame) fStackFrames[i]);
}
}
}
- private IStackFrame[] _getStackFrames(XDebugResponse lastResponse) {
+ private XDebugStackFrame[] _getStackFrames(XDebugResponse lastResponse) {
//IStackFrame[] newStackFrames = null;
if (lastResponse.isError())
- return new IStackFrame[0];
+ return new XDebugStackFrame[0];
Node response = lastResponse.getParentNode();
NodeList frames = response.getChildNodes();
- IStackFrame[] theFrames = new IStackFrame[frames.getLength()];
+ 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);