Share via


How to: Debug ASP Errors with Just-In-Time Debugging

If there is a syntax or run-time error in an ASP file, the server stops the procedure containing the error. If debugging is enabled for that ASP application, the server prompts you to start the debugger and displays an error message. If debugging is not enabled for the ASP application, an error message is sent to the client browser. In either case, the procedure containing the error stops.

If a debugger is installed on the server computer, the server does not pass error information through to the client. Instead, it displays an error message on the server computer's monitor.

You can launch the debugger in response to an error or debugger statement only if just-in-time debugging is enabled. For more information on how to enable just-in-time debugging, see Just-In-Time Debugging.

To debug ASP script in response to an error

  1. When an error occurs and the Just-in-Time debugging dialog box appears, choose the Microsoft Visual Studio 2005 debugger.

  2. In Visual Studio, open the project containing the ASP file to be debugged. If the project is already open in another instance of Visual Studio, you cannot open it again. Instead, Visual Studio creates a new solution and new project.

See Also

Other Resources

Debugging ASP Applications