【发布时间】:2011-10-01 05:54:30
【问题描述】:
可能重复:
How to print the current Stack Trace in .NET without any exception?
当抛出异常时,其文本包含堆栈跟踪。我能否毫无例外地获取堆栈跟踪文本(包括文件和行)?
public void f()
{
//blah
string stacktrace = ???;
//blah
}
【问题讨论】:
标签: c# .net stack-trace