Show TOC

Debugging Web Dynpro Applications Using the Context MenuLocate this document in the navigation structure

Use

When debugging Web Dynpro ABAP applications it is important to go as quickly as possible directly to the place in the Web Dynpro coding where a problem is likely to occur. To enable this, debugging entries have been added to the system context menu. In addition to the entries Show Quick Help and More Field Help , the following entries are now available:

  • Activate Debugger

    • In the Event Handler of the UI Element

      Note

      This setting can only be selected if the affected UI element actually has an event handler.

    • WDDOBEFOREACTION

    • WDDOAFTERACTION

  • Deactivate Debugger

    • In the Event Handler of the UI Element

    • WDDOBEFOREACTION

    • WDDOAFTERACTION

    • Delete All HTTP Breakpoints

Activating and Deactivating Debugging

  1. Set an external breakpoint somewhere in the coding where your work will not be affected by it.

    An external breakpoint is necessary so that the application server opens the debugger in the correct GUI. If you omit this step you will be reminded in the Web Dynpro context menu (entry Start of the navigation path Activate Debugger Next navigation step Set an External Breakpoint End of the navigation path).

  2. Start your Web Dynpro application with URL parameter /H=X.

  3. Open the context menu of a UI element that triggers an action, and select the required entry for the debugger.

  4. Debug your application.

  5. When you have finished debugging, you can delete your breakpoints using the entries in the context menu mentioned above.

UI Elements

The following UI elements are currently supported.

  • Button

  • InputField

  • LinkToAction

  • FormattedTextView

  • ThresholdSlider

  • ToolBarLinkToAction

  • CheckBox

  • TriStateCheckBox

  • HorizontalContextualPanel

  • Standard buttons on a popup

    Note

    The debugger for all methods registered for a button on the popup is activated regardless of which button has been clicked.