CHAPTER 13

image

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.