.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
Post a Comment