Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Two breakpoints on the same method (but different conditions)
Two breakpoints on the same method (but different conditions) [message #222438] Wed, 18 January 2006 22:04 Go to next message
Eclipse UserFriend
Originally posted by: zuma.bogus.net

Hello,

Is am installing (programmatically) two conditional breakpoints on the same
method with different conditions. I see that the breakpoint manager adds
them, but only the last one is being handled.

Is it possible at all to have two conditional breakpoints on the same
method? Where does the restriction, which I am hitting upon lays in the java
debug framework or in jdt?

Thanks for any input.

Z.
Re: Two breakpoints on the same method (but different conditions) [message #226360 is a reply to message #222438] Thu, 23 March 2006 03:36 Go to previous message
R.J. Lorimer is currently offline R.J. LorimerFriend
Messages: 21
Registered: July 2009
Junior Member
Out of curiosity, can you just use one conditional breakpoint with an ||
condition?

So, instead of:
Breakpoint 1: return condition1;
Breakpoint 2: return condition2;

Can you instead use:
Breakpoint 1: return condition1 || condition2;

I know that from a visual control standpoint, two breakpoints would
cause problems... I'd also wonder if Eclipse would be expected to
perform an 'and' style check on these two breakpoints, or an 'or' style
check.

Regards,

R.J.

zuma wrote:
> Hello,
>
> Is am installing (programmatically) two conditional breakpoints on the same
> method with different conditions. I see that the breakpoint manager adds
> them, but only the last one is being handled.
>
> Is it possible at all to have two conditional breakpoints on the same
> method? Where does the restriction, which I am hitting upon lays in the java
> debug framework or in jdt?
>
> Thanks for any input.
>
> Z.
>
>
Previous Topic:Calling a Java search (JavaSearchQuery)
Next Topic:Problem with generics reported errors
Goto Forum:
  


Current Time: Fri Jul 05 02:26:30 GMT 2024

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

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

Back to the top