Hitachi

JP1 Version 12 JP1/Navigation Platform Development Guide


4.10.2 How to debug plugins

To debug a plugin by using the Eclipse debugger function:

  1. Start Eclipse.

  2. In the Package Explorer View, click the template plugin project imported in 4.2 Importing a template plugin project.

    The project is selected.

  3. From the menu, select Debug, and then Debug Configurations.

    The Debug Configurations dialog box appears.

  4. Right-click Remote Java Application and, in the menu that opens, click New.

    A new remote Java application is created. For the port number, specify the value set for the ucnp.setup.server.cosminexus.debug.jdwp.port property in the user setup property file (ucnp_setup_user.properties).

  5. Click the Debug button.

    The debugger runs.

  6. Set breakpoints in the implemented Java code.

  7. In the Web browser, perform the operation below for debugging the plugin.

    For I/O Plugins

    Perform operation on Operational Content associated with the plugin and make sure that the plugin operates correctly.

    For Suspend/Resume Plugins

    Partially perform operation on any Operational Content, and then log out by clicking the Suspend button. Then, log in again and make sure that the contents of operation up to the suspended point were saved and you can resume the operation from the middle of the Operational Flow.

    For Custom Window Plugins

    After you log in, make sure that the custom window appears.