The Debug on Server action can be used
to debug Web objects such as EJBs, JSP pages, and servlets - including integrated Java™ and
JSP pages.
About this task
Debug on Server will start a server debug session, add the project
to the server for the purpose of finding source, and it will launch a browser
containing the Web object that is selected. You can launch the Debug
on Server action from a selected Web project, or from a selected
Web object or Web object source file in a Web project. To launch the Debug
on Server action, complete these steps:
Procedure
- If you are debugging a remote WebSphere® Application Server, start
it in debug mode.
- In a workbench project navigator view, such as the Navigator view
or Project Explorer view, locate the Web object or project
that you want to debug. You might need to expand the project node and its
sub-folders to locate the Web object.
- Right-click the Web object and choose Debug As > Debug
on Server from the pop-up menu.
- In the Server Selection dialog box, perform
one of the following tasks:
- If you have previously created servers that support debugging of the selected
application and want to use one of these servers, you can select the Choose
an existing server check box, select the server from the selection
list, and then click Finish.
- If you have not yet created a server for the application that you want
to debug, ensure that the Manually define a new server radio
button is selected and then create a WebSphere Application Server.
Results
Tip: When you are selecting or creating a server in the Server
Selection dialog box, selecting the Always use this
server when running this project check box will cause this server
to be used the next time you use the Debug on Server action
to debug the application.