O'Reilly logo

ASP.NET by Example by Steven A. Smith

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

ASP.NET Debugging Features

ASP.NET includes several new features to aid debuggers that weren't included with Classic ASP. The first of these is the Trace object, which allows programmers to include debug output in their pages that can be controlled using page-level or application-level directives. Trace is a new intrinsic object that, like Response, Request, Server, and so on, is directly accessible in your ASP.NET code. When deactivated, these statements are not included in the compiled version of the page. As a result, there is no performance hit as there would have been in Classic ASP code, like that shown in Listing 13.1. Using this kind of code resulted in extra overhead from the function call involved and the If-Then statements that had ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required