Full automatic application trace for .net v4
Posted
by JL
on Stack Overflow
See other posts from Stack Overflow
or by JL
Published on 2010-05-31T22:24:38Z
Indexed on
2010/05/31
22:33 UTC
Read the original article
Hit count: 156
I would like to implement a way to trace every line of code in an application that is written for .net v4.0.
An example would be. If I had the following function.
private bool hasValue(string value)
{
if(string.isnullorempty(value)
{
return false;
}
else
{
return true;
}}
Then when the function is called I want detailed trace logs to contain something like this:
Function called |Line 10 |Signature private bool hasValue(string value)|ValuesPassed hasValue("") Line Evaluated | Line 11 | if(string.isnullorempty(value) |ValuesPassed if(string.isnullorempty("") - evaluation returned true entered line 13 |signature return false|return action taken.
This tracing can be done manually, but its a lot of work, and would dirty the code. Isn't there a way to get this level of tracing automatically with .net or 3rd party plugin?
Thank you
© Stack Overflow or respective owner