difference between the Debug class and Trace class

Posted by Saranya Boopathi under C# on 6/26/2013 | Points: 10 | Views : 2299 | Status : [Member] | Replies : 1
What's the difference between the Debug class and Trace class?

Saranya Boopathi


Responses

Posted by: aswinialuri-19361 on: 6/26/2013 [Member] Starter | Points: 25

Up
0
Down
hi Saranya,
Main difference is debug works for debugging a code
Trace works for debug and release a code
the main advantage of using trace over debug is to do performance analysis which cannot be done by debug.
Trace runs on a different thread thus it does not impact the main code thread.
if you need to enable a trace in a particular code
you must mention trace="true" in the page directives then it is enabled.



Mark as Answer if it helps you
Thanks&Regards
Aswini Aluri

Saranya Boopathi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response