wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse debugger Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse debugger" Watch "Eclipse debugger" New topic
Author

Eclipse debugger

Ilko Ivanov
Greenhorn

Joined: Aug 04, 2011
Posts: 9
When you want to check your code what is the easiest way to get an overview of what is going on. For example the vlaues of variables the status of loops. I want to have a quick overview and see if everything is done as i ecpect it.
Thanks


http://www.encodedmessages.com
Greg Brannon
Bartender

Joined: Oct 24, 2010
Posts: 557
I print out values I'm interested in to see if they're behaving the way I expect them to. This approach is especially useful in loops to verify that the loop index(es) start with the correct value, that the loop terminates when it's supposed to, and that the values within the loop begin with the desired initial values and vary appropriately as the loop executes. I use Eclipse's debugger occasionally, but I find just printing the desired values easier, maybe because I don't know how to use the debugger that well.


Learning Java using Eclipse on OpenSUSE 11.2
Linux user#: 501795
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

I use a logging framework and log such information at debug or trace levels. That is usually easier for me to see the flow of the application than to step through the debugger.


JBoss In Action
 
Consider Paul's rocket mass heater.
 
subject: Eclipse debugger
 
Similar Threads
Resultset
What is the overview of the structured analysis and design?
how i can create a Collection or a Map?
Simpleified Specs for SCBCD 5
HTTP Handlers in WebLogic 8.1