Which class support stack trace including passed parameters?

  • Thread starter Thread starter Julia
  • Start date Start date
J

Julia

Hi

I can see that .NET have System.Diagnostics.StackTrace class
and I wonder can it be used to log the stack including values which was
passed to the function?
can i use reflection(some how....) to get the desire information?!
I understand that I need to add the debug symbols in release mode.

Thanks.
 
Julia,

You can get the call stack, but you can't get access to the parameters.
You would have to have them passed into your routine in order to get them.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top