In this lesson, you debug a JSF page and a Java ManagedBean.
EAServer supports only the debugging of ManagedBeans.
It does not support JSP debugging. JSP debugging is supported on
the Tomcat Web server.
Select Start|Programs|Sybase|Sybase WorkSpace|EAServer 5.3|Start EAServer (JDK 1.4 Debug).
If EAServer is already running in normal mode, shut it down and restart it in debug mode.
Double-click MySybStore_Tutorials_Web/webroot/entrypage.jsp in the WorkSpace Navigator to open the page in the editor.
To set a breakpoint on the JSP page, place the cursor to the left of the following line in the editor and double-click:
<h:commandLink action="inventory">
To display the page in the Debug perspective, select Window|Open Perspective|Other. When the Select Perspective dialog box opens, select Debug and click OK.
The Debug perspective displays a variety of information to help you troubleshoot problems with the page.
Right-click in the graphic display of the entrypage.jsp and select Debug from the context menu.
The page is executed and the progress appears in the Console view.
See the WorkSpace online help topic Web
Application Development|Deploy |Debugging a Web
Application
for more information about debugging Web applications.
Use the Breakpoints view to display, enable, and disable breakpoints.
To step into the code, click the Step into icon, or click the Step over icon to debug each line of the code.
Click the Resume icon to continue running the page.
You have completed debugging a JSF page and a ManagedBean.