Show TOC Start of Content Area

Procedure documentation Starting Debugging  Locate the document in its SAP Library structure

 

Prerequisites

·        The debugging has been activated for the relevant server node.

·        A debug launch configuration exists for the application to be debugged.

·        The breakpoints are set at the position of the source code where you want to stop the application.

Procedure

       1.      Choose Run Debug

       2.      In the Configurations window, select the relevant configuration.

       3.      Choose Debug.

Result

If you are using a Web Dynpro or J2EE Application launch configuration, the SAP NetWeaver Developer Studio automatically opens a Web browser window and displays the application being debugged.

If you are using a Java Application configuration (for example, for debugging an EJB component), you need to open the Web browser manually. Use the following URL for starting the application:

http://<hostname>:<port>/@@@DEBUG@@@[<debug-id>]/<appl-abs-path>

Where <hostname> and <port> are the host and port of the J2EE Engine node. <appl-abs-path> is the HTTP alias and request parameters (if any) of the application. <debug-id> is an optional part. It is used to specify the ID of the debugged node if there is more than one node reserved for debugging.

For example, a debug URL may look like this:

http://sap.com:50000/@@@DEBUG@@@/myapp/MyJSP.jsp

The launcher attempts to connect to the server node via the specified address and port and the result is displayed in the Debug view. If the launcher is unable to connect to the server node at the specified address, an error message appears.

This graphic is explained in the accompanying text

For more information about debugging, see the Java Development User Guide, in particular the topic Debug View.

 

 

End of Content Area