**********************************************************************/
package net.sourceforge.phpdt.internal.debug.core.model;
+import net.sourceforge.phpdt.internal.debug.core.PHPDBGProxy;
+
import org.eclipse.debug.core.DebugEvent;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.model.IStackFrame;
import org.eclipse.debug.core.model.IThread;
import org.eclipse.debug.core.model.IVariable;
-import net.sourceforge.phpdt.internal.debug.core.PHPDBGProxy;
-import net.sourceforge.phpdt.internal.debug.core.model.PHPDebugTarget;
public class PHPStackFrame implements IStackFrame {
return variables;
}
+ public IVariable findVariable(String s) throws DebugException {
+ if (this.hasVariables()) {
+ String name="$"+s;
+ for(int i= 0; i < variables.length; i++) {
+ String n= variables[i].getName();
+ if((variables[i].getName()).equals(name))
+ return variables[i];
+ }
+ }
+ return null;
+ }
+
public boolean hasVariables() throws DebugException {
if (variables == null) {
return false;
}
public Object getAdapter(Class arg0) {
- return null;
+ if (arg0==PHPStackFrame.class)
+ return this;
+ else
+ return null;
}
public int getIndex() {