This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic