Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Checkpoint and Watches in eclipse?

 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I work with NetBeans in which I use checkpoint and watch option which make my programming easy. But got problem when I use Eclipse. Is there any option where I can stop the flow as i did in netbeans using checkpoint and check varible values via watch option?


Kaustubh
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the source view, double-click on the vertical bar on the left side of the view. This will set a breakpoint. You can also do it by right-clicking on the line you want to stop, and hit CTRL+Shift+B.

Run the program in Debug mode. When the line with the breakpoint is reached, you'll be asked if you want to switch to the Debug Perspective. Use it. You'll see several useful debugging view, like Variables, Breakpoints...
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Christophe
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!