Starting a debug session for server-side JavaScript

Depending on the product that you are running, you can launch a debug session using the Debug on Server or Server Attach action.

If you have installed this debug functionality with the IBM® WebSphere® Application Server Toolkit, you use the Debug on Server action to launch a debug session.

If you have installed this debug functionality with an IBM Rational® product, you can launch a debug session for an application running on WebSphere Application Server by using the Debug on Server action or by performing a Server Attach to attach to a Web object that is running on a remote application server. In the IBM Rational product online documentation, help for using Server Attach to debug can be found in the help navigation to the left. This help can easily be located by clicking the Show in Table of Contents button (Show in Table of Contents button) while you are in this page.

If you have installed this debug functionality with an IBM Rational product and you are debugging a remote WebSphere Application Server, use the WebSphere v5 Server Attach server to attach to the application server (which must already be started in debug mode before you can attach to it). Then, when you are creating the server for attaching to the application server, ensure that JavaScript™ debugging is enabled. For information about creating a server for attaching to a server, see the related topic.

If you have installed this debug functionality with an IBM Rational product and you are debugging a WebSphere v5.1 Test Environment server, complete these steps before launching the debug session:

  1. After creating the server, as described in the Testing applications (Testing and publishing Web and J2EE applications) section of the help, set the server to edit mode by double-clicking it or by right-clicking it and choosing Open from the pop-up menu.
  2. When the server is in edit mode, click the Overview tab and select the Enable JavaScript debugging check box.
  3. Close the editor and you will be prompted to save the changes. Alternatively, you can save the change by selecting Ctrl+S.
  4. Restart the server.
Once the server is set up to debug JavaScript and restarted, you can perform a Debug on Server on your project containing the JavaScript (using that server).
Related tasks
Creating a server
Debug on Server
Creating a new WebSphere Application Server debug launch configuration

Feedback