use of org.exist.debuggee.Debuggee 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