top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

What is tracing in ASP.NET

+2 votes
50 views
What is tracing in ASP.NET
posted Jan 25, 2014 by Prachi Agarwal

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

trace enables you to monitor the application for errors and exception with out VS.NET IDE.
Trace works in both debug as well as release mode. The main advantage of using trace over
debug is to do performance analysis which can not be done by debug. Trace runs on a different
thread thus it does not impact the main code thread.

There is also a fundamental difference in thinking when we want
to use trace and when want to debug. Tracing is a process about getting
information regarding program's execution. On the other hand debugging
is about finding errors in the code.

To enable tracing on an ASP.NET page we need to put the ‘trace’ attribute to true on the page
attribute. In the behind code we can use the trace object to put tracing

answer Jan 25, 2014 by Atul Mishra
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...