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 s
Your best option is probably to insert the required trace code in the relevant methods. That way you can attach trace listeners and dump values when needed.
I know it is not what you're asking for, but it is one way to get the data.
Alternatively, you can debug the application using WinDbg. The !clstack/!dso commands will let you inspect parameters and stack objects.