Hi Matt,
What do you actually mean by "for particular instances"? - are you referring
to specific objects?
AFAIK, there is no direct way to log each method as it executes. So in other
words, you will have to add a code statement in each method to log it.
However, you could make use of the stack trace to walk back and find out
which methods were executed. You need to use the StackTrace.GetFrame method
for that. Check out
http://rakeshrajan.com/blog/archive/2005/05/02/16.aspx
for an example.
--
HTH,
Rakesh Rajan
MVP, MCSD
http://www.rakeshrajan.com/
"Matt" wrote:
I have inherited an application that I am not very familiar with and I would
like to know if there is a way to produce a trace of what methods were
called and the order in which they executed for particilar instances.
Nothing fancy just something that would maybe log each method to a file as
it executes.
Thanks,
Matt