Show TOC Start of Content Area

Procedure documentation Creating Launch Configurations for Debugging  Locate the document in its SAP Library structure

Use

You need to create a launch configuration in order to perform debugging. In addition to the Eclipse standard configurations, you can also create two different SAP-specific configurations:

·        J2EE application configuration (for JSPs or servlets)

·        Web Dynpro application configuration

The following procedure describes the steps for the two SAP-specific configurations only. For more information about creating the Eclipse standard configurations, refer to the Java Development User Guide.

Prerequisites

·        To define the debug configuration, the relevant server process must be running.

·        If you need to create the J2EE application configuration, the relevant Enterprise application project must contain either JSPs or servlets. 

Procedure

Specifying Configuration for a J2EE Web Application

·            ...

       1.      Choose Run Debug.

       2.      In the Configurations pane, select J2EE Application as the configuration type.

       3.      Choose New.

A new configuration with a default name is created.

       4.      In the Name field, specify the name for the configuration.

       5.      On the Web Object tab, assign the relevant Enterprise Application Project. Choose the Browse button. 

       6.      From the context menu, select the EAR project containing the file to be debugged and choose OK.

       7.      Choose the radio button JSP or Servlet and choose the corresponding Browse button.

       8.      In the popup that appears, select the servlet or JSP to be debugged and confirm with OK.

       9.      On the J2EE Engine tab, select the relevant server node. Choose Browse and assign the server node should be used for debugging.

   10.      On the Common tab select under Debug mode the option J2EE development.

   11.      Choose Apply button.

   12.      Choose Close button.

This graphic is explained in the accompanying text

Alternatively choose Debug to start the debugging. This action is only enabled if the relevant server node has already been activated for debugging.

 

Specifying Configuration Data for a Web Dynpro Application

...

       1.      Choose Run Debug.

       2.      In the Configurations window, select Web Dynpro Application as the configuration type.

       3.      Choose New.

A new configuration with a default name is created.

       4.      In the Name field, specify the name for the configuration.

       5.      On the Debug  tab, assign the relevant Web Dynpro project. Choose Browse. 

       6.      In the popup, select the Web Dynpro project containing the file to be debugged and choose OK.

       7.      Assign the Web Dynpro Application and choose the corresponding Browse  button.

       8.      In the popup that appears, select the Web Dynpro application to be started and confirm with OK.

       9.      Select the Create and deploy archive check box only if the archive for the project was not yet created or deployed.

   10.      On the J2EE Engine tab, select the relevant server. Choose Browse and assign the server node to be used for debugging.

   11.      On the Common tab, select the option J2EE development under Debug mode. 

   12.      Choose Apply.

   13.      Choose Close.

Alternatively, choose Debug to start the debugging.

Result

You have created a reusable debug launch configuration.

 

End of Content Area