Create the start configuration for the batch server as the debug environment. In the start configuration, specify the following contents for the batch applications:
Create the start configuration in the Debug Configurations dialog box. The following is the procedure to create the start configuration in the Debug Configurations dialog box:
Specify the contents required for the start configuration of the batch applications in the tab displayed in the right pane.
In the Main tab of the Debug Configurations dialog box, specify the batch application main class required for debugging, the executed batch server, and the connection to the Management Server remote management required for specifying the batch server.
Specify the following items in the Main tab:
Item name | Specified value |
---|---|
Name | Specify the name of the start configuration. |
Project | Specify the Java project that has developed the batch application to be debugged. |
Main class | Specify the main class of the batch application to be debugged. |
Host name or IP address#1 | Specify localhost as the host name to which the Management Server remote management will connect. |
Port number #1 | Specify the port number to which the Management Server remote management will connect. |
Connect to Remote Management | Connect to Remote Management. This enables you to specify#2 the batch server. If the management user authentication in the Management Server Management User settings is specified as Authenticate, the Log in - Remote Management dialog box appears. |
Batch server#3 | Select the server for executing the batch application. |
As and when required, specify the following items:
Item name | Specified value |
---|---|
Include system library, when searching for a main class | Select this item to include the system library in the scope of search, when you click the Search button in Main class to search the main class. |
Include inherited mains, when searching for a main class | Select this item to include the class that inherited the main class in the scope of search, when you click the Search button in Main class to search the main class. |
Stopping in main | Select this item to automatically interrupt with main, even if the breakpoint is not set up in the main method during the debugging process. |
Disconnecting from Remote Management | Remote Management will be disconnected. When disconnected, you cannot select the batch server. If the management user authentication in the Management Server Management User settings is specified as Authenticate, the Log in - Remote Management dialog box appears. |
Do not use the security manager | Specifies whether to use Security Manager for starting the batch server:
|
Specify startup arguments for the batch applications to be debugged and the Java VM startup options in the Argument tab of the Debug Configurations dialog box.
Specify the following items in the Argument tab:
Item name | Specified value |
---|---|
Program arguments | Specify the arguments for starting the batch applications. |
VM arguments | Specify the Java VM startup options and the system properties for executing the batch applications. |
Working directory | Specify the folder for executing the batch applications. |
Specify the class path of the batch applications to be debugged in the Classpath tab of the Debug Configurations dialog box. Normally, you need not specify the class path if you set up the library required for the project build path beforehand. If there is a class path that is referenced at runtime, add that class path.
Specify the following items in the Classpath tab:
Item name | Specified value |
---|---|
Classpath | Specify the class path to be referenced, when the batch application is executed. |
Specify the path for searching the source of the interruption location, when the debugging process is interrupted, in the Source tab of the Debug Configurations dialog box. Normally, the source exists in the project, so the path need not be specified, but when an external library is used, specify the path where the source code of that library exists.
In the Common tab of the Debug Configurations dialog box, specify all the options that can be commonly set up for the start configurations, such as the options for storage of the start configuration files, display on the start configuration menu bar, and for output of the files used for start configuration console output.