• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 212
  • Last Modified:

step-through code in Java

I'm a .net developer and in VS one can add breakpoints to the code and step through it.  What is the equivalent of that in Java/ Eclipse?
0
newbieal
Asked:
newbieal
2 Solutions
 
manuel_mCommented:
You can also add one or more breakpoints in eclipse (or netbeans). Then you have to run the program in debug mode.

Debugging with eclipse: http://www.ibm.com/developerworks/java/library/os-ecbug/
0
 
Kevin CrossChief Technology OfficerCommented:
In case it doesn't show this in the link, just like in Visual Studio there is a shaded, thin column on the left side of the code pane in Eclipse.  You can toggle breakpoints there in the same fashion you would in VS.

The simple way to debug from there, is to click on the bug button to execute your code versus the play button link which should prompt you to change perspectives to debug, then the above link should be good resource from there.

Hope that helps.
0
 
farmedCommented:
Just as my ancestor said, ricktklick that shaded line. I attached a picture.

Eclipse-set-breakpoint.jpg
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now