Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Breakpoint odd behaviour in Debug Perspective
Breakpoint odd behaviour in Debug Perspective [message #323938] Mon, 14 January 2008 04:14 Go to next message
Eclipse UserFriend
Hi!

I recently noticed a strange behaviour while defining breakpoints in the
regular Java Editor in Debug View.

I'm using Eclipse 3.4 M4.

When double clicking in the left vertical bar (where blue dots are
supposed to appear as breakpoints), if there is already a breakpoint
defined, instead of disappearing, another one is defined in the same
line of code. Eclipse will define a new breakpoint for each double click
in the same line of code. The only way to delete these breakpoints is to
open the breakpoint view and delete them through right click menu.
Furthermore, when you modify and save the file, these breakpoints
disappear.

This situation appears when an interface is inline implemented. I tried
to reproduce this situation, getting this piece of code (it's just test
code, it has no meaning):

************************************************************

public class TestClass {

public void aTest() {

Iterator myIterator = new Iterator<Integer>() {

public boolean hasNext() {

class aSecondClass {

public boolean breakPointMe1() {
String foobar = new String();
return false;
}

public String breakPointMe2() {
String foo = "bar"; return foo;
}
}

return false;
}

public Integer next() {
return null;
}

public void remove() {
}

};
}
}

************************************************************

Hope to help!
Víctor Roldan.
Re: Breakpoint odd behaviour in Debug Perspective [message #323946 is a reply to message #323938] Mon, 14 January 2008 06:57 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Víctor,

You're right. The same thing happens for me with M4. Please open a
bugzilla with your nice test case that reproduces the problem. Good
work for reproducing it was a simple test case!


Víctor Roldán Betancort wrote:
> Hi!
>
> I recently noticed a strange behaviour while defining breakpoints in
> the regular Java Editor in Debug View.
>
> I'm using Eclipse 3.4 M4.
>
> When double clicking in the left vertical bar (where blue dots are
> supposed to appear as breakpoints), if there is already a breakpoint
> defined, instead of disappearing, another one is defined in the same
> line of code. Eclipse will define a new breakpoint for each double
> click in the same line of code. The only way to delete these
> breakpoints is to
> open the breakpoint view and delete them through right click menu.
> Furthermore, when you modify and save the file, these breakpoints
> disappear.
>
> This situation appears when an interface is inline implemented. I
> tried to reproduce this situation, getting this piece of code (it's
> just test code, it has no meaning):
>
> ************************************************************
>
> public class TestClass {
>
> public void aTest() {
>
> Iterator myIterator = new Iterator<Integer>() {
>
> public boolean hasNext() {
>
> class aSecondClass {
>
> public boolean breakPointMe1() {
> String foobar = new String();
> return false;
> }
>
> public String breakPointMe2() {
> String foo = "bar";
> return foo;
> }
> }
>
> return false;
> }
>
> public Integer next() {
> return null;
> }
>
> public void remove() {
> }
>
> };
> }
> }
>
> ************************************************************
>
> Hope to help!
> Víctor Roldan.
Previous Topic:How to handle the white spaces in the file path
Next Topic:Need info on upgrading from eclipse 3.1 to europa
Goto Forum:
  


Current Time: Thu Jul 17 21:41:19 EDT 2025

Powered by FUDForum. Page generated in 0.06437 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top