Debugging JNI code

Use the inspect debugger tool available on the NonStop system to debug the native code. This native code is written by application developer, and is used with the Java program. Use NonStop Development Environment for Eclipse (NSDEE) or Native Inspect to debug the native code. For more information, see NonStop Development Environment for Eclipse User Guide and Native Inspect Manual.

You can use the following command to start java in an inspect debugger:
run -debug java java_options

To debug native code, wait until the DLL is loaded. Native Inspect allows you to stop the program after the DLL is loaded so that you can set breakpoints. For information on how to set the breakpoints, see Native Inspect Manual.

You can view and debug the native routine to be debugged and other native routines that routine calls. All other scopes above the native routine are either compiled or interpreted Java code, which the inspect debugger has no knowledge about.

To add an even breakpoint on DLL open event, use the NSDEE debugger. For more information, see Breakpoints section in the NonStop Development Environment for Eclipse User Guide.