Question

How can I get programmatic access to the call stack?

Was it helpful?

OTHER TIPS

You can use the StackTrace and StrackFrame classes in System.Diagnostics.

The right way is to use the StackTrace and StackFrame classes. Throwing an exception just to get the stack trace is completely misusing exceptions.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top