Debugging Your JavaScript Files (Internet Explorer Only)

You can use the Microsoft Script Debugger or the Microsoft Visual Studio debugger to debug the JavaScript files that you write for your toolkit support set.

To enable debugging you must clear the Disable script debugging (Internet Explorer) and Disable script debugging (other) options in the Internet Explorer advanced options (Tools > Internet Options > Advanced). After you change this option, you need to restart Internet Explorer for the change to take effect.

If you want the Just-In-Time debugger to list the Microsoft Visual Studio debugger as one of the available debuggers, you need to select the Script option in the Visual Studio Options dialog box (Visual Studio > Tools > Options > Debugging > Just-In-Time).

After these debugging options are enabled, you can use all standard methods to debug your JavaScript functions. For example:

  • You can attach to the Internet Explorer process and put breakpoints in your functions.

  • You can include a debugger; statement in your JavaScript function, to launch the Just-In-Time debugger when the function runs.

  • You can use the Just-In-Time debugger when an exception occurs that causes it to open.