Solved

breakpoints in eclipse

Posted on 2014-03-06
2
205 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 35

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses

734 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