Setting debug preferences
Selecting Window > Preferences from the workbench menu bar opens the Preferences dialog box. In this dialog box, you can choose the Run/Debug node to set a variety of debug preferences and you can choose other nodes that affect the general behavior of the workbench. You can expand the Run/Debug node and choose HTML Script Application to set the following preferences for debugging Active Script:
Debugging on server
If you want to be able to debug script when using the Web project Debug on Server action, select the Enable Active Script Debug during Server Debug check box.
Termination behavior
When you launch a debug session for an HTML script application, the workbench launches a browser to run the application. In this preference page, you can set the termination behavior of this browser when you terminate the debug session:
- To have the browser terminate upon the close of a debug session, select Terminate Browser.
- To have the browser continue running when you terminate the debug session, select Leave Browser Running.
- To set the debugger to prompt for browser termination behavior each time you terminate a debug session, select Prompt.
By default, you will be prompted when you terminate an HTML Script Application debug session.
When you are finished setting preferences, click OK to save it and close the Preferences dialog box. If you wish to continue using the dialog, click Apply to save the preference and then proceed with other actions in the dialog.
Related tasks
Preparing to debug
Starting a debug session
Debugging an HTML Script Application
Debugging a Script Host Application
Debugging Web project script
Using the Debug view
Terminating a debug session
Debug on Server
Halting a running program
Editing and viewing source while debugging
Running an Active Script application
Stepping through a program