Open GoogleCodeExporter opened 9 years ago
I found a workaround. The problem seems to occur because the tick thread
doesn't play
well with the debugger. If you put a breakpoint to pause the tick thread, then
you
can step through both test threads nicely.
The best location I found for a breakpoint was the call to Thread.Sleep() in
TestFramework.startClock() line 359.
When they're both blocked waiting for a tick, you can release the tick thread
until
one of the test threads is released, and then leave the tick thread blocked
again
until you need the next tick. It seems to take two cycles of the tick thread to
advance one tick.
In the eclipse debugger window, the relevant thread states are:
* Suspended - it's paused in the debugger and ready to be stepped forward.
* Stepping - it's currently executing something, but is being blocked. When
released,
it will go back to the suspended state.
* Running - never been paused. Running on its own.
Original comment by donkir...@gmail.com
on 26 Sep 2008 at 8:48
The same issue (and workaround) apply to the debugger in Netbeans.
Original comment by daniel.r...@gmail.com
on 29 Jan 2010 at 3:53
Original issue reported on code.google.com by
donkir...@gmail.com
on 26 Sep 2008 at 8:35