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. To debug the XUI file as preview, you need to do the following steps:

  1. Perform one of the following operations to open Debug dialog box.
    • Select Debug As > XUI Preview as shown in the following screen capture.
      Screen capture showing how to debug the XUI file
    • Right click the XUI file in the Package Explorer view, and select Debug As > XUI Preview as shown in the following screen capture.
      Screen capture showing how to debug the XUI file
    • 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. Enter 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. The following screen capture shows the New launch configuration icon.
Screen capture shows how to create new configuration

In the defined logic classes, such as the classes for Initializers or Actions, if you set the break points to debug the codes, the program can hang up at the break point before its preview opens. And the output information can be displayed in the Console view. You can refer to the following screen capture.

Screen capture showing how to debug the XUI file as preview