Debuggee dbgr = BrokerPool.getInstance().getDebuggee();
IoSession session = (IoSession) dbgr.getSession(args[0].getStringValue());
if (session == null) return StringValue.EMPTY_STRING;
Command command = new org.exist.debuggee.dbgp.packets.Source(session, "f "+args[1].getStringValue());
command.exec();
//XXX: make sure it executed
return Utils.nodeFromString( getContext(), new String( command.responseBytes() ) );
} catch (Throwable e) {
throw new XPathException(this, Module.DEBUG001, e);
}
}