Setting breakpoint on the end of the method in Eclipse
- From: dt <daytues@xxxxxxxxx>
- Date: 7 May 2007 11:25:21 -0700
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?
.
- Follow-Ups:
- Re: Setting breakpoint on the end of the method in Eclipse
- From: Jason Cavett
- Re: Setting breakpoint on the end of the method in Eclipse
- From: hossein . shojaei2006
- Re: Setting breakpoint on the end of the method in Eclipse
- Prev by Date: Re: JSF dataTable editing
- Next by Date: Re: Hibernate + create table = ?
- Previous by thread: toString or typecast: which one is better
- Next by thread: Re: Setting breakpoint on the end of the method in Eclipse
- Index(es):
Relevant Pages
|