use of org.exist.debuggee.dbgp.packets.Command in project exist by eXist-db.
the class StepOver method eval.
@Override
public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException {
try {
Debuggee dbgr = BrokerPool.getInstance().getDebuggee();
IoSession session = (IoSession) dbgr.getSession(args[0].getStringValue());
if (session == null)
return BooleanValue.FALSE;
Command command = new org.exist.debuggee.dbgp.packets.StepOver(session, "");
command.exec();
return BooleanValue.TRUE;
} catch (Throwable e) {
throw new XPathException(this, Module.DEBUG001, e);
}
}
use of org.exist.debuggee.dbgp.packets.Command in project exist by eXist-db.
the class StackGet method eval.
@Override
public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException {
try {
Debuggee dbgr = BrokerPool.getInstance().getDebuggee();
IoSession session = (IoSession) dbgr.getSession(args[0].getStringValue());
if (session == null)
return Sequence.EMPTY_SEQUENCE;
Command command = new org.exist.debuggee.dbgp.packets.StackGet(session, "");
command.exec();
return Utils.nodeFromString(getContext(), new String(command.responseBytes()));
} catch (Throwable e) {
throw new XPathException(this, Module.DEBUG001, e);
}
}
Aggregations