7

I started using the ScriptEngine for running javascript code. I find its very useful and good for my needs, but one thing is missing, and its debugging. How can i do it? I really wish to be able to just put a breakpoint or step-into and see the js interpreter runs my code, step by step. is that possible?

1
  • What version of Java? What development tools are you using? Commented May 9, 2014 at 16:11

2 Answers 2

1

Admittedly, this isn't a great answer (but your question lacks some detail on what JDK or tools you're looking to debug with).

In any case, if you're using IntelliJ as your IDE it comes with a Nashorn debugger that allows you to step through both JavaScript code and any references Java code too.

More details are here: http://blog.jetbrains.com/idea/2014/03/debugger-for-jdk8s-nashorn-javascript-in-intellij-idea-13-1/

Sign up to request clarification or add additional context in comments.

Comments

0

Netbeans 8 fully supports Nashorn debugging in, through and round Java/JavaScript.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.