What is difference between debug and trace? [Resolved]

Posted by Rajeshatkiit under C# on 12/19/2015 | Points: 10 | Views : 1605 | Status : [Member] | Replies : 1
What is difference between debug and trace?




Responses

Posted by: Rajnilari2015 on: 12/19/2015 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 50

Up
0
Down

Resolved

Debug is used during debugging at the time of application development while Tracing is mainly for logging purpose both in the debug and release mode.

Once the project development is over and is deployed into the UAT/Production server, then we cannot debug and if some error/bug comes, inorder to log that, we use Tracing. So for isolating the production problems and fixing them without disturbing the running system, we write to the log file(s) where we require Tracing.

In other words, Tracing is a kind of mechanism to monitor the health of the real time running application.

There are some posts in DNF already on this topic which we believe will be equally helpful -

http://www.dotnetfunda.com/interviews/exclusive/show/834/whats-the-difference-between-trace-and-debug-in-aspnet

http://www.dotnetfunda.com/interviews/show/3639/what-is-the-difference-between-debugwrite-and-tracewrite

Thanks in advance.


--
Thanks & Regards,
RNA Team

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

Login to post response