Link to home
Start Free TrialLog in
Avatar of komlaaa
komlaaa

asked on

condional expression debuger

How do we create a conditional expression in eclipse debuger?

Since i am not getting any response, i may have confused the experts :) -- basically i am using eclipse debugger in some java code. I want to add a conditional expression to the debugger so that it stops the for loop to stop at 60th loop (i = 60 ) for example. I just recall how to add the conditional expression.
Avatar of mkatmonkey
mkatmonkey
Flag of United States of America image

I'm curious about that too. I doubt that you'll find an answer. Instead you'll probably have to add the following throw-away code in your loop:

if(i==60){
   log.debug(); //or a noop() call set your breakpoint here.
}

Avatar of komlaaa
komlaaa

ASKER

Here is how it is done(i was able find this out on my home pc):

Right click on the breakpoint line in the debugger area, select Breakpoint properties.  Then click Enable condition and put in your requirements.

For some reason this feature is not available on my is not available on my Work PC eventhough i am using the same version as at home.
If I could, I'd award you the points on this question.
Avatar of komlaaa

ASKER

So the question is what is preventing this feature to be available on my work machine?
ASKER CERTIFIED SOLUTION
Avatar of mkatmonkey
mkatmonkey
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of komlaaa

ASKER

that feature is only available in java -- i was trying do it in jython script.

Hehe you input direct me so i have to give  you the points
Thanks!
Forced accept.

Computer101
EE Admin