• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse 3.3.2- Debugger to stop at a Specific Condition

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I am using Eclipse 3.3.2 as my IDE .

Assume that this is my code







Is it possible that my debugger to stop at condition where when i == 99 ??

Please suggets as how to stop Eclipse Debugger when the value of i reaches 99
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Set a breakpoint at the System.out.println("Hi" + i); line.
2. Right-click the breakpoint and select "Breakpoint properties..."
3. In the "Breakpoint properties" page, click "Conditional" and enter "i == 99" in the condition.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much Christophe , i was able to stop at the specified condition .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic