.net - Programmaticaly get C# Stack Trace -



.net - Programmaticaly get C# Stack Trace -

possible duplicate: how print current stack trace in .net without exception?

when exception thrown, text contains stack trace. can somehow obtain stack trace text(including file , line) without exceptions?

public void f() { //blah string stacktrace = ???; //blah }

environment.stacktrace or system.diagnostics.stacktrace if need more convienient (i.e. not string) representation

c# .net stack-trace

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -