Use breakpoints you have set in Web pages and managed beans to debug the Web application. You must either run the Web application on Apache Tomcat server or deploy the Web application to EAServer to execute breakpoints. Tomcat supports both managed bean and Web page breakpoints. EAServer supports managed bean breakpoints.
Prerequisite: Start EAServer or Tomcat in debug mode.
To debug a Web application using EAServer or Tomcat:
Select the Web application project that you want to debug in the WorkSpace Navigator of the Web Application Development perspective.
Right-click and select either Debug or Debug as|Debug on Server from the context menu.
The Debug on Server dialog box opens.
Do one of the following:
To use an existing server:
Select Choose an existing server.
Select the server from the Select the server type list box.
A description of the selected server displays under the list box.
To change the order of the server list, click the down arrow in the View By field to open its drop-down list and select to view by Name, Host name, Vendor, or Version.
To have the selected server be the default server for the project, select Set server as project default (do not ask again).
To define a new server:
Select Manually define a new server.
Either type the server host name or click the down-arrow in the Server host name field and select the server host from the drop-down list.
Select the server type from the Select the server type list box.
A description of the selected server displays under the list box.
To change the order of the server list, click the down arrow in the View By field to open its drop-down list and select to view by Name, Host name, Vendor, or Version.
To have the selected server be the default server for the project, select Set server as project default (do not ask again).
Do one of the following:
To debug only the Web application project you selected in step 1, click Finish and skip to step 5.
The server starts in debug mode and runs the Web application. Breakpoint mapping is executed and the breakpoints you set in managed beans are triggered.
To add or remove projects that you want to run on the server:
Click Next.
The Add and Remove Projects dialog appears.
Do any of the following:
To add a project to run on the server, select the project in the Available projects list box and click Add.
To add all projects to run on the server, click Add All.
To remove a project from running on the server, select the project in the Configured projects list box and click Remove.
To remove all projects from running on the server, click Remove All.
Click Finish.
The server starts in debug mode and runs the Web application. Breakpoint mapping is executed and the breakpoints you set in managed beans are triggered.
Review the Web pages in a Web browser and look for breakpoints.
Setting a Breakpoint in a Java or EJB Managed Bean
Setting a Breakpoint in a Web Page
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com