Debugging the XUI

You can debug the XUI file as preview. And you can set the break point in the defined logic class, the preview stops at the break point and the debug information is displayed in the Console view. Perform the following steps to get the overall understanding of this function:

  1. Perform one of the following operations, a dialog window is displayed.
    • Click the down arrow next to the Debug icon in RAD/WID, and select Debug As > XUI Preview as shown in the following figure.
      Screen capture shows how to debug the XUI file by this method
    • Right click the XUI file in the package navigation view, and select Debug As > XUI Preview as shown in the following figure.
      Screen capture shows how to debug the XUI file by this method
    • Click Run > Debug As > XUI Preview in the toolbar, or click Run > Debug as shown in the following figure.
      Screen capture shows how to debug the XUI file by this method

  2. Provide the proper configuration information of the XUI file which is to be debugged in the dialog and click Debug.
Tip: You can also click the New launch configuration icon on the upper-left corner in the Debug window to create new configurations. The created configuration can be saved automatically and is serially reusable. See the following figure for example.
Screen capture shows how to create new configuration

In the defined logic classes, such as the classes for Initializers/Actions, if the developers set the break points to debug the codes, the program can hang up at the break point before its preview pops up. And the output information can be displayed in the Console view. See the following figure.