Skip to main content



      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 17: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] Wed, 22 March 2006 22:36 Go to previous message
Eclipse UserFriend
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: Sat May 03 13:28:13 EDT 2025

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

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

Back to the top