I'm talking about managed .NET code. If we run any program and attach VS to it we can see parameters' values for each method in call stack. I'd like to create a logging solution which will log all parameters' values for each method in call stack. Actually I need this info in case an exception occurs.
I know it's possible with profiling API. But I wonder is it possible with only managed code?
UPDATE: Ok, probably with pure .NET it's impossible. Then may be with some kind of unmanaged code... the point is to do this from within application itself. An application in case of an exception could call some library (may be unmanaged) which returns info about methods' values in call stack. Just thoughts...