Why can't I debug in eclipse C++?

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

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

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.