I need to debug scripts running on a remote server which uses an embedded rhino engine, using intelliJ IDEA. Is there any procedure that I could follow to write a plugin to
IDEA has xdebugger API to support debugging. You can use xslt debugger plugin sources as example.