Thread tracing.

"Daniel M." <[email protected]> Sun, 11 Dec 2005 10:58:53 +0200
Newsgroups gmane.comp.java.jswat.user
Message-ID <[email protected]>
Hello.

I have a following question about debugging threads:

Suppose there is a class C which implements Runnable. I create
two instances ((1) and (2)) of that class, create a thread for each of
them and let them run. Now, when class C is being stepped through,
debugger executes each statement twice, once for each thread (alternating
between them). Is it possible to tell the debugger to let one of the threads
run freely and step only through the other? I found that it is possible to
suspend one of the threads, and then step only through the other one, but
didn't find how it is possible to do what I am asking about.


Daniel.