Monday, 2 April 2012

Thread in Evaluating state while debugging

Thread in Evaluating state in Eclipse Debugging

Hello Friends,
                       after so many days i am posting something. now-a-days while debugging a simple core java code in eclipse, i face a problem again and again.
My debug break point is  on a simple variable which value is assigned by a calling function.
 In the debugging prespective my thread status changes to "Evaluating" and the whole code is hanged. Eventually when I tried to step, it would say "stepping" forever, and never complete the step - I had to terminate the process..
Although the thread appears suspended, the resume button is not enabled. Only i could do is to terminate the debugging and start it again, but the same problem appears again.  

So friends, this type of problem may be caused by a exception thrown by the calling method.
Some tricks to avoid this situation is :

1) change your breakpoints. disable breakpoint from the statement where  variable is defined. Enable the breakpoint inside the definition of the function which is called. 
Now it will show you the proper exception.

2) In the variable defining statement, select the expression, right click and click on watch. In the expression perspective you can see the exception name properly.

That is only i know about this condition. If you have any other idea please feel free to comment.
 

No comments:

Post a Comment

Search This Blog

Total Pageviews