How can one debug and use breakpoints in Eclipse?
-
-
Answer:
1 - Find a piece of code suspicious, based on the stacktrace, message error, etc. 2 - Double click on the left bar (near the line number), a little blue point should appear. 3 - Instead of "Run As", use "Debug as" 4 - Use the software, try to repeat the error. 5 - When that line is about to be executed the Debug View will show the code, with the line in green. 6 - Usually on the top left window there is the stack with all method called before and on the top right the variables where you can check their values. 7 - You can select an object , right click on it and 'Inspect' or even just hold the mouse cursor over it to check the structure and respective values. 8 - You can use the arrows near the Play and Stop icon to execute this line and then: go to the next one go 'inside', if this line is calling some other method go 'up' to the method that called this one 'resume', then it is gonna stop only if it run into another breaking point or the first one again.
Henrique Lemos Ribeiro at Quora Visit the source
Related Q & A:
- How can I debug my php code?Best solution by Stack Overflow
- How can one deal with Obsessive-Compulsive tendencies?Best solution by helpguide.org
- How can one enter uk via france?
- How can one start a non-profit organization?Best solution by Yahoo! Answers
- How can one delete their Yahoo email address?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.