Show TOC Start of Content Area

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

The NetWeaver Developer Studio provides tools for debugging Web Dynpro applications. For this purpose you can set breakpoints in the controller implementations of Web Dynpro applications. As with other Java code, you create reusable launch configurations and then use the debug perspective to debug the code. To stop debugging, you need to terminate the threads in the Developer Studio.

Prerequisites

      The application being debugged must have been deployed on the server.

      The server process must be in debug mode. By default, debugging is deactivated on the server.

More information:  Enabling Servers for Debugging

Procedure

Making Configuration Settings

...

       1.      In the Configurations pane, expand node Web Dynpro Application. Select the relevant configuration.

       2.      Choose Debug. The source code is now displayed in the Debug perspective and execution starts.

       3.      If asked, enter your Software Deployment Manager (SDM) password. SDM is the standard tool for installing Java Enterprise Edition (JEE) components on the Java Engine.

Setting Breakpoints

...

The debugger enables you to detect and diagnose errors in your Web Dynpro application. You control the execution of your program by setting breakpoints.

       1.      In Web Dynpro Explorer, select the view or controller that you want to debug.

       2.      From the context menu, start the Java Editor for the view or the controller.

       3.      Position the mouse cursor on the left hand edge of the editor (grey line), there the breakpoint is to be added. Double-click to finally create the breakpoint.

Creating Debug Launch Configurations

...

       1.      Choose Run Debug … Web Dynpro(double-click) while the Debuggee Web Dynpro project is displayed in Web Dynpro Explorer view.

       2.      Enter a name for the configuration, then choose Debug. Enter or browse to the project and application data.

       3.      Within SAP AS Java, goto the instance entry INSTANCE_HWNUMBER_RELVERSION_...... and choose it. You can set option Generate URL extension to enable multi user debugging is more than one server node exists depending on the number of server nodes that are available in the SAP Management Console installation. Runtime information for HOST, HTTP Port, Debug Port and Debug Server is automatically transferred to the corresponding entry fields.

       4.      Choose Apply, next Close or Debug.

       5.      After you have saved the configuration, you can make changes on the debug launch configuration again.

Starting Debugging

...

       1.      Choose Run Open Debug Dialog ... to open the screen which allows you to make your configuration launch settings.

       2.      Choose New from the context menu on the Web Dynpro node in Web Dynpro Explorer. On the right-hand side you now can enter data. Make the required entries for the project and the application, next press Apply, then Close.

Stopping Debugging

...

       1.      In the Debug view, select the node for the configuration to be stopped.

       2.      In the context menu, choose Terminate.

More Information

Debugging Contexts

End of Content Area