?
Solved

breakpoints in eclipse

Posted on 2014-03-06
2
Medium Priority
?
218 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 2000 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

Google Certified Professional - Cloud Architect

This course (1 of 3) is designed to help students who are interested in Google Cloud Platform (GCP) to become familiar with the platform, navigate the console and learn its capabilities. It will also prepare students for the Google Cloud Architect certification exam.

Question has a verified solution.

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

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This video teaches viewers about errors in exception handling.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

719 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