How to write a Remote JavaScript Debugging Plugin for IDEA?

I need to write a plugin for IDEA, to support Remote JavaScript Remote Debugging with Rhino. The plugin should connect to the server which has an embedded rhino engine and allow to set breakpoints via IDEA. Can anyone please give me any idea how this can be done, or point me to some useful resources? I couldn't find much related stuff.

Thanks.

Please sign in to leave a comment.