debugging threads

Is there a best practive on debugging applications that use more then 5-10 threads?
I have trouble getting IDEA to stay with one thread. It jumps from thread to thread.
NOTE, I have clicked the "suspend all threads while stepping" and it still doesn't work.

Any Ideas? I use version 3.0.5.


1 comment
Comment actions Permalink

I am also looking for tips on how to best debug an application that uses multiple threads. In my case, I am attaching Idea to a J2EE application running on JBoss. My breakpoint gets hit on multiple threads and when stepping through the first hit, IDEA will preempt this and switch to the next thread hit. Turning on "Suspend all threads while stepping" does not prevent this from happening.


Please sign in to leave a comment.