Before you debug a Rich UI application, review these details.
- You can use the following EGL debugging preferences, as described
in "Setting preferences for the EGL debugger":
- Stop at first line of a program
- Set systemType to DEBUG
- The settings in the Service Reference tab
in the Default behavior mapping window
- You do not need to create a runtime configuration to start a debugging
session. If you click the Debug icon on the toolbar of the Rich UI
Preview view (not the Debug icon on the toolbar of the workbench),
a configuration is created for you. A configuration is also created
for you if you do as follows:
- Right-click the EGL file that contains the Rich UI handler
- Click Debug EGL Rich UI application
To launch the previously launched runtime configuration when
you click the Debug icon on the workbench toolbar, set this preference:
- From the main menu, click . The Preferences
page is displayed.
- Expand Run/Debug and click Launching.
The Launching window is displayed.
- Click Always launch the previously launched application.
- To save your changes and exit the page, click OK.
- In the Debug perspective, you complete the usual set of debug
activities (Step Into, Step Through, and so on), as described in the
topic "EGL debugger commands." The following commands are not available:
Run to Line and Jump to Line.
- When a debug session starts, the application runs in an external
browser, and you can edit your code, set breakpoints, and inspect
variables. The EGL debugger does not support the following capabilities
for Rich UI:
- Hotswapping, which is the processing of changes that
were made to declarations and logic statements during a debugging
session
- Processing the changes that were made to variable values in the
Variables view
- To end a debugging session, click the red icon in the Debug perspective.
When the debugging session ends, you are in the Debug perspective,
with your source code open in the EGL editor.