How to get non-current thread’s stacktrace?
NB: Skip to the bottom of this answer for an update. Here’s what’s worked for me so far: StackTrace GetStackTrace (Thread targetThread) { StackTrace stackTrace = null; var ready = new ManualResetEventSlim(); new Thread (() => { // Backstop to release thread in case of deadlock: ready.Set(); Thread.Sleep (200); try { targetThread.Resume(); } catch { … Read more