Starting a debug session

The Active Script debugger supports the following types of debug session launches:

The Active Script debugger supports multiple script host application debug sessions, however you can have only one HTML script application debug session at a time.

Using the debug launch shortcuts

If you have a Java or Web project that contains a file that is supported for active script debugging (see the Active Script debugger overview page for a list of supported file types), you can perform the following steps to quickly launch a debug session for that file:

  1. Open a workbench perspective that offers the launch/debug/run action set (such as the Debug perspective).
  2. In a project file Navigator view, select the file that you want to debug.
  3. Perform one of the following tasks:
    • Depending on the type of file selected, choose Run > Debug As > HTML Script Application or Run > Debug As > Script Host Application from the workbench menu bar.
    • Depending on the type of file, select the workbench toolbar Debug push button and choose Debug As > HTML Script Application or Debug As > Script Host Application from the menu.

Using the launch configurations

To be able to launch an application for debugging or attach to an existing HTML script application that is running in Microsoft Internet Explorer, you can create a launch configuration for the application. The following launch configurations are available for Active Script debugging projects:

  • HTML Script Application
  • Script Host Application

Settings, such as breakpoints, are saved globally in the workbench - however, these settings are not saved by launch configuration. Therefore, if you create more than one launch configuration for the same application, settings such as breakpoints will be the same for each launch configuration.

Debugging script in a Web project

When you are developing a Web application, you can launch a debug session for objects that run script. To do this, you use the Server Tools debug on server action. For information about the debug on server action, see the related topic.

Terms of use | Feedback
(C) Copyright IBM Corporation 2003, 2005. All Rights Reserved.