Can I get the stack traces of all threads in my c# app?
        Posted  
        
            by Drew Shafer
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Drew Shafer
        
        
        
        Published on 2010-04-27T18:47:58Z
        Indexed on 
            2010/04/27
            19:03 UTC
        
        
        Read the original article
        Hit count: 411
        
I'm debugging an apparent concurrency issue in a largish app that I hack on at work. The bug in question only manifests on certain lower-performance machines after running for many (12+) hours, and I have never reproduced it in the debugger. Because of this, my debugging tools are basically limited to analyzing log files.
C# makes it easy to get the stack trace of the thread throwing the exception, but I'd like to additionally get the stack traces of every other thread currently executing in my AppDomain at the time the exception was thrown.
Is this possible?
© Stack Overflow or respective owner