Hi..
I want to know main difference between tracing and debugging with example ?
Thanks..
Tracing and Debugging
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Manoj SevdaRank #1,670 · 916 reputationPosted Nov 11, 2011, 6:59 PM EST
Debug statements can't be compiled into a release version. Debug statement can only be used in debug mode while trace statement can be used both in debug and released mode.
Tracing is actually the process of collecting information about the program's execution. Debugging is the process of finding & fixing errors in our program. Tracing is the ability of an application to generate information about its own execution. When tracing is enabled, in addition to showing user-provided trace content, the System.Web.UI.Page class automatically includes performance data, control-tree structure information, and state management content for every request. The TraceContext Class captures and presents execution details about a web request. This class cannot be inherited. It is available in the System.Web namespace. This object can be declared and instantiated in the following manner. Note that the Page Directive Trace attribute has precedence over the application level trace attribute of web.config. While using application level tracing, we can view the trace output in the trace.axd file of the project.
Vineet Kumar SainiRank #257 · 9.8K reputationPosted Nov 11, 2011, 7:27 PM EST
Sam HobbsRank #107 · 20.5K reputationPosted Nov 11, 2011, 7:31 PM EST