Solved

step-through code in Java

Posted on 2008-10-09
3
190 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
3 Comments
 
LVL 6

Accepted Solution

by:
manuel_m earned 450 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 59

Assisted Solution

by:Kevin Cross
Kevin Cross earned 50 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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Protect jar file - windows app 2 65
Oracle SQL syntax check  without executing 6 76
mysql jsp example issue 32 53
Java class and jar 3 25
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…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

821 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