Sun Java System Application Server Enterprise Edition 8.2 Developer's Guide

ProcedureTo use the NetBeans IDE for Debugging

The following steps are applicable to the NetBeans 5 IDE and the Sun Java Studio 8 software, which is built on the NetBeans IDE.

  1. Download the latest version of NetBeans from http://www.netbeans.org.

    This site also provides documentation for the NetBeans IDE.

  2. Start the NetBeans IDE.

  3. If an Application Server is not already configured in the NetBeans IDE, perform the following steps:

    1. Select the Runtime tab to display the Runtime window.

    2. Right-click on Servers in the Runtime window.

    3. Select the Add Server command from the menu.

    4. On the first screen, select Sun Java System Application Server in the Server field, and type a name in the Name field. Select Next.

    5. On the second screen, fill in the requested configuration information. In the Domains folder field, use the Browse button to go to the Application Server domain-root-dir directory.

    6. Click Finish.

  4. Create a project (an application or module) in the NetBeans IDE.

  5. Right-click on the project in the component tree and select Debug Project from the menu.

    This stops the Application Server and restarts it in debug mode.

  6. Set break points in your source file in the NetBeans IDE as usual, and run the application.