home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples.exe / QuickStart / aspplus / doc / tracingoverview.aspx < prev    next >
Encoding:
Text File  |  2000-05-31  |  2.1 KB  |  30 lines

  1.  
  2. <!-- #include virtual="/quickstart/aspplus/include/header.inc" -->
  3.  
  4. <h4>Tracing Overview</h4>
  5.  
  6. When you are developing an application, it's often helpful to be able to insert debugging print statements
  7.  into your code to output variables or structures, assert whether a condition is met, or just generally trace through 
  8. the execution path of the application.  ASP+ provides two levels of tracing services that make it easy to do just that.
  9. <p>
  10.  
  11. <ul>
  12. <li><b>Page-level Tracing</b> - At the page-level, developers can use the <b>TraceContext</b> instrinsic to write custom debugging 
  13. statements that appear at the end of the client output delivered to the requesting browser.  ASP+ also inserts some helpful statements 
  14. regarding the start/end of lifecycle methods, like Load() and Dispose().  Because tracing can be explicitly enabled or disabled for a page, 
  15. these statements may be left in the production code for a page with no impact to the page's performance.  Each statement is associated 
  16. with a user-defined category for organizational purposes, and timing information is automatically collected by the ASP+ runtime.  The 
  17. resulting output may be ordered by either time or category.  
  18. <p>
  19.  
  20. <li><b>Application-level Tracing</b> - Application level tracing provides a view of the inputs and outputs to a page, such as form and querystring variables or headers, as well as some
  21. important statistics about the page's execution (control hierarchy, session and application state).  Application-level tracing is enabled via the <a href="configoverview.aspx">ASP+ 
  22. configuration system</a>, and accessed as a special mapped URL into that application ("trace.axd").  When application tracing is 
  23. enabled, page-level tracing is automatically enabled for all pages in that application.
  24. </ul>
  25.  
  26. <p>
  27. To learn more about how the Trace feature works, read the following two sections: <a href="tracelogpage.aspx">Trace Logging to Page Output</a> and <a href="tracelogapp.aspx">Application-level Trace Logging</a>.
  28. <p>
  29.  
  30. <!-- #include virtual="/quickstart/aspplus/include/footer.inc" -->