Debugging, Tracing, and Profiling Scripts

In this chapter, you will learn:

  • How to debug standalone Nashorn scripts in the NetBeans IDE
  • How to debug Nashorn scripts that are called from Java code in the NetBeans IDE
  • How to trace and profile Nashorn scripts

NetBeans 8 with JDK 8 or later supports debugging, tracing, and profiling Nashorn scripts. You can run and debug standalone Nashorn scripts from within the NetBeans IDE. You can also debug Nashorn scripts when they are called from Java code. You can use all the debugging features for debugging scripts that you can use for debugging Java code; you can set breakpoints, display variables’ ...

Get Scripting in Java: Integrating with Groovy and JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.