> How do I debug threads using eclipse?
>
[quoted text clipped - 19 lines]
> If I step into (F5) breakpoint 1, it doesn't go into the run method of
> class B.
That's expected. Start does not call the run method.
> If I try to run to next breakpoint, it just runs till the end of the
> program.
>
> Now I know that the thread is executing because I get a partial ouput from
> it, but it is incorrect.
Your technique is correct--set the breakpoint within the code the thread
will execute. I can't tell why this doesn't work without seeing more of
your code, but I would think it has something to do with run not appearing
as you think it does. Either it's a different run method, or your
breakpoint statements really doesn't get executed.
> So how do I step into a different thread of execution?
But the breakpoint on the first statement within the run. If it still
doesn't stop, are you sure you're running with debugging and that it's
really the object you think it is?
Cheers,
Matt Humphrey matth@ivizNOSPAM.com http://www.iviz.com/