How to get non-current thread's stacktrace?

前端 未结 6 1706
别那么骄傲
别那么骄傲 2020-12-05 02:28

It is possible to get stacktrace using System.Diagnostics.StackTrace, but thread has to be suspended. Suspend and Resume function are obsolete, so I expect that better way e

6条回答
  •  抹茶落季
    2020-12-05 03:10

    According to C# 3.0 in a Nutshell, this is one of the few situations where it is okay to call Suspend/Resume.

提交回复
热议问题