.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 -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -