Chapter 43

Debugging Web Applications

WHAT’S IN THIS CHAPTER?

  • Using Visual Studio to debug both server-side ASP.NET code and client-side JavaScript running in a web browser
  • Enabling and viewing ASP.NET trace logs for an individual web page or the entire application
  • Configuring Health Monitoring so that you are notified as soon as a problem occurs in an ASP.NET application

With Visual Studio 2012, debugging solutions for the web is just as straightforward as doing the same for Windows-based applications. You can use most of the same debugging windows already discussed in previous chapters, as well as deal with errors through the Exception Assistant. However, you can use some differences and additional features specific to web applications to target your debugging practices more closely to the web paradigm.

In addition to the standard debugging techniques, ASP.NET also provides you with a comprehensive tracing capability, and even the capability to perform health monitoring on your system to ensure it runs in the manner you expect, and exposing problematic scenarios when it doesn’t.

NOTE If you use Windows 7 with UAC, and you use the full version of IIS rather than the built-in web development server or IIS Express for debugging, then you must launch Visual Studio with administrator rights. Right-click the Visual Studio 2012 shortcut, and select Run as Administrator. To always launch as the administrator, right-click the shortcut and select Properties; then select the Compatibility ...

Get Professional Visual Studio 2012 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.