Community
Participate
Working Groups
Created attachment 221742 [details] Debug perspective I just noticed that with the new version of Eclipse(4.2.1) when an Exception breakpoint is hit all expressions on the expression view in the debug perspective are evaluated to null . In my case i have caused a NoSuchElement exception and when eclipse hit the breakpoint stop evaluating the expression ... This bug caused my 30 minutes of confusion ! Should be fixed as soon as possible ...
Created attachment 221743 [details] Variable View
Created attachment 221744 [details] BreakPoint View
Can you provide an example snippet that causes the problem? Testing with a simple Java application I cannot reproduce, even if a variable referenced in an expression goes out of scope we do not set it to null you get something like this: "<var_name> cannot be resolved to a variable"
Created attachment 221809 [details] Archived Project Look at the line 404 of the FixedArraySet.java in the project this cause the exception, to reproduce the issue run the FixedArraySetTest.java JUnit Test in debug mode ... Archived Project in the attachment ...
(In reply to comment #4) > Created attachment 221809 [details] > Archived Project > > Look at the line 404 of the FixedArraySet.java in the project this cause the > exception, to reproduce the issue run the FixedArraySetTest.java JUnit Test > in debug mode ... > > Archived Project in the attachment ... Using the attached project + steps I cannot reproduce using: Version: 4.3.0 Build id: I20130307-2000 Steps I tried: 1. create some expressions for vars within the FixedArraySetTest / FixedArraySet / random other out-of-scope code 2. create a line breakpoint in FixedArraySet line 404 3. debug + step over exception 4. remove line bp from 2 and create an exception breakpoint for NoSuchElementException 5. debug again 6. add back the line bp so that both are present 7. debug again Even switching perpectives during debugging the expressions always correctly evaluated to either their value or the standard "<error(s)_during_the_evaluation>" result Alessio, can you try a 4.3 vanilla version (no other plugins installed) of Eclipse to confirm my results? Or provide some additional steps for me to try?
Markin worksforme without more information / steps