Solved

breakpoints in eclipse

Posted on 2014-03-06
2
208 Views
Last Modified: 2014-03-25
what is effective way of putting breakpoints in eclipse. Where and how we have to put for effective debugging.

please advise
Any links resources ideas highly appreciated. Thanks in advance
0
Comment
Question by:gudii9
[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
2 Comments
 
LVL 36

Accepted Solution

by:
mccarl earned 500 total points
ID: 39911393
You put them at the code that you need to debug the operation of. Not really much more that can be said on that...

Maybe I will just say that you can only put breakpoints on lines of code that actually execute, ie. you can't put a breakpoint on a line that just defines a variable, as an example. Also, it may be obvious to some but generally it helps to put the breakpoint on some part of the code that executes *before* the part that you are interested in, so that you can see the state of your app before part in question and then "step" into the code. It's much easier to step forward in code than the step back to something that has already happened.
0
 
LVL 7

Author Comment

by:gudii9
ID: 39930489
then "step" into the code

I am not very clear on this Step Into  esp if the line has chain of 5 different methods each method with argument of someother method call. How to come back once you 'Step Into'. Click Step Reurn or Resume?

say my line number 100 is like below where i put break point

String fInput = StringUtils.substring(input, inputStartIndex + fieldDef.getBeginIndex(), inputStartIndex + fieldDef.getBeginIndex(),  + fieldDef.getSize());

So i 'Step Into ' does i land into  fieldDef.getBeginIndex()?(If i say Step Return will i come back to line 100?)
If I click 'Step Into' do i land into  fieldDef.getSize() method?(()?(If i say Step Return will i come back to line 100?)
 So is it better to put break point at line 99.


Any good video tutorials on this to explain clearly?
Please advise
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

728 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