Debugging and tracing

Document Sample
Debugging and tracing Powered By Docstoc
					Debugging

----------------

Run-time error detection

-----------------

2 - Types of debugging:



• Page Level Debugging

<%@ Page Debug="true" - - --




• Application Level Debugging

All pages of the application will be set "debug" mode.

web.config

---------------

<configuration>



<system.web>

            <compilation debug="true" />



---

Debug intrinsic object

            System.Diagnostics namespace

                     - Debug class

------------------------------

Trace

---------

Performance checking of events at run-time.
2 - Types:



• Page Level Tracing

          <%@ Page Trace="true" - - - - -




• Application Level Tracing

web.config

--------------

--



<system.web>

<trace enabled="true"

          pageOutput="false"

          requestLimit="40"

          traceMode="SortByCategory"/>



Trace.axd // Tracing Utility Tool

---

Broswer 1

http://localhost/B107/



Browser 2

http://localhost/B107/trace.axd

				
DOCUMENT INFO
Shared By:
Stats:
views:1
posted:2/23/2012
language:
pages:2
Description: Debugging and tracing