Re: Thread tracing.

Nathan Fiedler <[email protected]> Sun, 11 Dec 2005 10:15:52 -0800
Newsgroups gmane.comp.java.jswat.user
Organization Blue Marsh Softworks
Message-ID <[email protected]>
There are two techniques that I can think of, both of which are 
documented in the "Multithread Debugging" help topic. One is to set a 
thread filter on the breakpoint, and the other is to set the expire 
count to 1 so the breakpoint is hit only one time.

If anyone has some other techniques, please let me know and I will 
update the help topic.

Thanks

n


Daniel M. wrote:
> 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.