Starting an EGL Web debugging session

If you are working with an EGL-based Web application that accesses a JNDI data source, you cannot follow the instructions in the current topic unless you previously configured a Web application server. For background information that is specific to WebSphere, see WebSphere Application Server and EGL.

Also, if you wish to debug an EGL Web program, prepare the server for that purpose as described in Preparing a server for EGL Web debugging. You will save time on the current procedure if you already started the server for debugging, as described in Starting a server for EGL Web debugging.

To start an EGL Web debugging session, do as follows:

  1. In the Project Explorer, expand the WebContent and WEB-INF folders. Right-click the JSP file you want to run, then select Debug > Debug on Server. The Server Selection dialog is displayed.

  2. If you have already configured a server for this Web project, select Choose an existing server, then select a server from the list. Click Finish to start the server (if necessary), to deploy the application to the server, and to start the application.

  3. If you have not configured a server for this Web project, you can proceed as follows, but only if your application does not access a JNDI data source--

    1. Select Manually define a server.

    2. Specify the host name, which (for the local machine) is localhost.

    3. Select a server type that is similar to the Web application server on which you intend to deploy your application at run time. Choices include WebSphere v5.1 Test Environment and WebSphere v6.0 Server.

    4. If you do not intend to change your choices as you work on the current project, select the check box for Set server as project default.

    5. In most cases, you can avoid this step; but if you wish to specify settings that are different from the defaults, click Next and make your selections.

    6. Click Finish to start the server, to deploy the application to the server, and to start the application.

Related concepts
EGL debugger
WebSphere Application Server and EGLWeb support

Related tasks
Preparing a server for EGL Web debugging
Starting a server for EGL Web debugging
Stepping through an application in the EGL debugger
Using breakpoints in the EGL debugger
Viewing variables in the EGL debugger