uCosminexus Application Server, Application Development Guide

[Contents][Glossary][Index][Back][Next]

9.6.2 Executing Debug

Debug batch applications using Eclipse. The connection to the Management Server remote management of the batch applications is presumed to be set up in the subsection 9.6.1 Setting up the debug environment. For details on executing the batch applications, see the section 9.7 Executing batch applications.

The following two methods are used to debug the batch applications:

The procedures are described below.

Organization of this subsection
(1) Debugging from a shortcut
(2) Debugging by displaying the Debug Configurations dialog box
(3) Precautions for debugging

(1) Debugging from a shortcut

  1. In the Project Explorer view, open the Java source file of the project to be debugged, and set up the breakpoint.
  2. In the Project Explorer view, either choose the project to be debugged or open the Java file using an editor.
  3. From the Eclipse menu bar, choose Run - Debug As - Cosminexus Batch Application.
    The debugging process is started. If the batch server is not running, the batch server will start.
    If the management user authentication in the Management Server Management User settings is specified as Authenticate, and if the connection to the Management Server remote management is not established, the Log in - Remote Management dialog box appears. Enter the management user ID and the password, and then click the OK button.
    If the breakpoint is reached, the processing is interrupted, and a message appears for confirming whether to open the Debug perspective. If you click the Yes button, the Debug perspective appears.
    Note that if you want to restart the processing interrupted at breakpoint, choose Run - Resume from the Eclipse menu bar.

(2) Debugging by displaying the Debug Configurations dialog box

  1. In the Project Explorer view, open the Java source file of the project to be debugged, and then set up the breakpoint.
  2. From the Eclipse menu bar, choose Run - Debug Configurations.
    The Debug Configurations dialog box appears.
  3. Select the created start configuration, and then click the Debug button.
    The debugging process is started. If the batch server is not running, the batch server will start.
    If the management user authentication in the Management Server Management User settings is specified as Authenticate, and if the connection to the Management Server remote management is not established, the Log in - Remote Management dialog box appears. Enter the management user ID and password, and then click the OK button. If the breakpoint is reached, the processing is interrupted, and a message appears asking the user whether to open the Debug perspective. If you click the Yes button, the Debug perspective appears.
    Note that if you want to restart the processing interrupted at breakpoint, choose Run - Resume from the Eclipse menu bar.

(3) Precautions for debugging