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 ...
Get ASP.NET by Example 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.