• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 147
  • Last Modified:

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.
0
komlaaa
Asked:
komlaaa
  • 4
  • 3
1 Solution
 
mkatmonkeyCommented:
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.
}

0
 
komlaaaAuthor Commented:
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.
0
 
mkatmonkeyCommented:
If I could, I'd award you the points on this question.
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
komlaaaAuthor Commented:
So the question is what is preventing this feature to be available on my work machine?
0
 
mkatmonkeyCommented:
I bet that there is some configuration difference. Compare the config info from your two different machines. You can get it by going to Help->About Eclipse SDK. Click "Configuration Details" in the dialog. I'd focus on the "java.version" propertie, but it couldn't hurt to compare the whole thing. You could copy to clipboard and email it to yourself from work to compare at home.
0
 
komlaaaAuthor Commented:
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
0
 
mkatmonkeyCommented:
Thanks!
0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now