Note: Server Attach only supports debugging WebSphere Application Server Version
5.
Note: Server-side JavaScript debugging is only supported
when debugging Web objects that are running on a WebSphere Application Server Version
5.1 (5.1 - 5.1.x).
Once you are debugging Web objects, you can control
their execution by setting line breakpoints, suspending execution, stepping
through code, and examining the contents of variables. For information about
debugging Web objects, see the Java, JavaScript, or Java and
mixed language debug online documentation.
To be able to attach to a
Web object and begin debugging it, complete these steps:
- Create a project for the application you are debugging (this project must
be a Java project
or a project with a Java nature). Although having a project
is not mandatory in most cases, you will need one if you are deploying the
application by way of the workbench. In addition, a workbench project is a
convenient location to keep the source for your application (source must be
on your local workstation and available in the source lookup path).
- Create a new server for the application server to which you are attaching.
For information about creating a new WebSphere v5 Server Attach server,
see Creating a server.
- Once your server is created, you can edit the server information by following
the instructions in Editing a WebSphere Version
5 Server Attach server.
- Once you have created the server, ensure that the application server is
started in debug mode and that you have deployed the application to the server.
When you have successfully attached to the application server, the
status of the server in the Servers view will change from Stopped to Debugging.
After you have finished debugging, you can disconnect from the application
server by performing one of the following tasks:
- Click the Servers view toolbar Stop the
server push button.
- Right-click the attach server and select Stop from
the pop-up menu.
- Click the Debug view toolbar Disconnect push
button.