Setting breakpoint on the end of the method in Eclipse



I have a hard time doing something in Eclipse. I hope I am missing
something obvious, since otherwise I must say this is a very annoying
feature of Eclipse.

Assume the following code:

void test() {
boolean a = true;
while(a) {
if(otherMethodReturningBoolean())
a = false;
// other code here
} // <--- Breakpoint here
} // <--- Breakpoint here

How to set a breakpoint on the lines marked with // <--- Breakpoint
here? When I try this, Eclipse says: "Breakpoint cannot be set at the
given position". In other words, I cannot catch the moment of exit
from the while or method. Yes, putting a dummy boolean dummy = 0; just
before the end of the procedure is a solution - however, much far from
"the" solution. Please, any ideas, comments or suggestions?

.



Relevant Pages

  • Re: Eclipse : edit code using drag & drop ?
    ... > After a few months of working with Eclipse, ... but the one feature i'm missing is the ability ... It is called cut/paste and it is just as fast. ...
    (comp.lang.java.programmer)
  • Re: Setting breakpoint on the end of the method in Eclipse
    ... void test() { ... Eclipse says: "Breakpoint cannot be set at the ... putting a dummy boolean dummy = 0; ...
    (comp.lang.java.programmer)
  • Re: Setting breakpoint on the end of the method in Eclipse
    ... void test() { ... Eclipse says: "Breakpoint cannot be set at the ... putting a dummy boolean dummy = 0; ...
    (comp.lang.java.programmer)
  • Re: Something like Visual Assist for Eclipse
    ... And as I said Eclipse has that, it's just not doing it automatically, you have to request it. ... perhaps Eclipse can offer this as a feature which can be turned off. ... Based on my experience, I'm guessing its suggestions are based on type checking (e.g. if you're typing in something which will be used as a parameter to a method which expects a string, the first few choices will be local variables and fields which are Strings, or methods which extend string), and most-recently-used. ...
    (comp.lang.java.programmer)
  • Re: Something like Visual Assist for Eclipse
    ... is not already in Eclipse although not necessarily as automated as in VA ... Rememer the choise is only in a listbox, ... Intelligense stays. ... The question wasn't which feature is more important. ...
    (comp.lang.java.programmer)