If you are running an Eclipse project and it occurs infinite loop, how to find where it is?
First, use [Debug As] to run your program in Eclipse debug mode. And click [suspend button] to pause the running program when the infinite loop occurs.
After the running program is paused, check the current thread in [Debug View].
Expand the current thread and click the first class under the thread, and it is the place inside the infinite loop. You can push F6 on the keyboard to step over the code to find out the occurring place.
References:
沒有留言:
張貼留言