Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to put debugger in Eclipse when you dont know where(which class) to put debugger breakpoint?

 
Monica Shiralkar
Ranch Hand
Posts: 842
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know how to put debugger breakpoint on a class when you know which class is having that problem code.and then move the debugger forward with F6 keys and F8 keys (in ECLIPSE). But what about a case when you dont know where to put debugger breakpoint. When you dont know which class to put the debugger breakpoint in. So in such a case how to do debugging.where to put debugger which keys to use to move forward.

thanks
 
Tomek Ziolkowski
Greenhorn
Posts: 9
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you don't get any exceptions (so that you don't know where the problem is) and your code still doesn't work as expected then you should probably think of where the problem may exists inside the code, then put some breakpoints there and debug the code step-by-step, verifying expected results at each step. Can't see any other way.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic