Solved

breakpoints in eclipse

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupSumClump challenge 9 102
Securing Jmx Console and web console 2 65
javap not working 8 37
How to convert String matching to regex in java 4 21
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 video teaches viewers about errors in exception handling.

920 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

16 Experts available now in Live!

Get 1:1 Help Now