Solved

step-through code in Java

Posted on 2008-10-09
3
179 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
sumHeights2  challenge 7 78
wordappend challenge 8 88
wordmultiple challenge 12 93
eclipse compiler vs Installed JREs option 3 42
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now