intra-mart e Builder for Accel Platform User Operations Guide

«  JSP Editor   ::   Contents   ::   Functions Available in Business Skeleton  »

Debug (Java Development)

Summary

  • This section describes how to debug the application which was developed in SAStruts + S2JDBC Framework.
  • There are 2 methods for debugging.
    1. Starting from Server View
    2. Starting server from resin.exe, and using Java Remote Debug

Starting from Server View

  • If the module project to be debugged has not been associated with debug server, following steps will be taken.
  1. Right click the Debug Server from Server View, and select [Add and Delete].

    サーバー・ビュー
  2. On the [Add and Delete] wizard, add the target Module Project, and press the [Finish] button.

    追加と削除
  3. Module Project is added to the Debug Server.  Start the debug of Debug Server.

    追加と削除

    Column

    Please refer to [Resin Setting for Development Environment] of e Builder Setup Guide for how to set debug server for Server View.
  4. Open the Java file in the project to be debugged, and set the break point.

  5. Execute the process of the debug target on the browser.

  6. Debug mode of eclipse is started.

Starting Server from resin.exe, and using Java Remote Debug

  1. Add the following argument to jvm_args of resin.properties in <% resin_home %>/conf folder.
    -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=<port number>
  2. Start the Resin server.

  3. From the eclipse tool bar, select [Run] → [Debug Configuration].

    ツール・バー
  4. From the Menu, select [New] from [Remote Java Application], and create the new startup configuration.

    デバッグの構成設定画面
  5. Set the following on the Connection tab.

    • Enter the label of startup configuration in the Name field (optional).
    • Select the project to be debugged in the Source.
    • Set [Standard (Socket Connection)] as connection type.
    • Put the host name at server startup to the host name and the port number specified in  jvm_args to the port number of Connection Property.

     

  6. Select the project to be debugged on the Source tab, and add it.

  7. Apply the debug configuration, and run it.

  8. Open the Java file in the project to be debugged, and set the break points.

  9. Run the process of debug target on the browser.

  10. eclipse debug mode is started.

«  JSP Editor   ::   Contents   ::   Functions Available in Business Skeleton  »