Server side javascript debugging

We're using rhino to execute javascript server-side for our application (don't ask...it's old legacy code that used to be executed by C++ wrappers).  Is there any hope whatsoever of debugging this using the java 1.6 scripting APIs in IDEA?  Or, should we just give up and do it the old fashioned way by putting in print statments everywhere and tracking what we see?

Thanks,
  John Watson

Please sign in to leave a comment.