?
Solved

step-through code in Java

Posted on 2008-10-09
3
Medium Priority
?
204 Views
Last Modified: 2013-11-23
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
Comment
Question by:newbieal
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 6

Accepted Solution

by:
manuel_m earned 1350 total points
ID: 22678073
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
 
LVL 60

Assisted Solution

by:Kevin Cross
Kevin Cross earned 150 total points
ID: 22678245
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
 

Expert Comment

by:farmed
ID: 22678576
Just as my ancestor said, ricktklick that shaded line. I attached a picture.

Eclipse-set-breakpoint.jpg
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month12 days, 15 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question