When debugging a Rich UI application, you use
a launch configuration that is created for you and then move back
and forth between an external browser and the EGL debugger.
You can launch the application in the following ways:
- Right-click the EGL file that contains the Rich UI handler and
then click Debug As > EGL Rich UI
application.
- If you are working in a source file that contains a Rich UI handler,
you can do the following procedure instead:
- Use the workbench toolbar. Either click the Debug icon there or
click the down-arrow next to the Debug icon and then click Debug
As > EGL Rich UI application.
- Alternatively, press F11 or use the topmost menu, where you click .
The debugger opens the application in an external browser. At the
first breakpoint, if a dialog is displayed to ask whether you want
to go into the Debug perspective, click Yes.
Your task is twofold:
- At every breakpoint, you go to the workbench to work with the
code in the debugger.
- As necessary, you return to the external browser to type input.
In relation to Rich UI, the EGL debugger does not respond to changes
that were made to declarations and logic statements during a debugging
session. However, the debugger does respond to those changes in the
following cases:
- When you debug a service that is invoked from Rich UI and that
is running in the workbench rather than in an application server;
or
- When you debug a library that is invoked from a service that is
running in the workbench.
When you want to end the debugging session, click the Terminate
button of the debugger and, if you are not in the EGL perspective,
return to the coding task by clicking the EGL perspective icon at
the top right of the workbench.