angel_30
angel_30

Reputation: 1

Breakpoints do not work on CDT 8.4.0 for Eclipse Luna for Linux

I had good times debugging Java applications on Eclipse, but recently that I'm working on a C/C++ on Ubuntu 12.04 using Eclipse CDT, it ignores the breakpoints when debugging! I've tried two versions of Eclipse CDT, CDT 8.4.0 for Eclipse Luna, but doesn't work either. Can somebody help with that?

NOTE: I know there are some other similar questions, but I was thinking it is better to ask this question which specifically addresses CDT 8.4.0 for Eclipse Luna.

enter image description here

Upvotes: 2

Views: 4299

Answers (6)

anonymous
anonymous

Reputation: 61

I have the same problem with my eclipse Photon, I figured it out by unchecking the "stop on startup at: main" in Debug Configuration-->Debugger.

enter image description here

I know this in Rikard Söderström's response to you.

Upvotes: 0

James Hirschorn
James Hirschorn

Reputation: 7994

I once had Skip All Breakpoints accidentally checked, and was wondering what was going on.

Upvotes: 0

BillT
BillT

Reputation: 1

If you're using MinGW gdb, check that C:\MinGW\bin is in your path (set in System Properties). Made all the difference for me.

Upvotes: 0

tanen01
tanen01

Reputation: 1

Experiencing the same problem here.. I am working around it by manually setting breakpoints after starting debug session. Console -> gdb, then type "break xxxx".

Upvotes: 0

juansolsona
juansolsona

Reputation: 187

It also happens for me in ReadHat 64 Seems like if the CDT breakpoints are not suitable for the current debug session, in the breakpoint window, when enabling "Show breakpoints Supported by selected target" all my breakpoints disapears from the list.

In my case, my ELF have debug info and all the breakpoints that I place are in the main ELF. My debug settings worked fine with the former Eclipse version.

I rolled back to eclipse Juno, and my debug session with same elfs worked out of the box.

Upvotes: 1

The eclipse-cdt is shipped only with the required tools for building c/c++ applications. It does not ship with gdb. You need to install that separately

How do I use GDB in Eclipse for C/C++ Debugging?

From link above these are the steps to follow.

1. Go to Help > Install New Software.
2. Add the CDT repository http://download.eclipse.org/tools/cdt/releases/8.4 to the list of repositories.
3. Select the CDT Repository. Now you need to install the CDT plugin along with GDB support from the list of available plugins (Select the CDT Main Features as well as CDT GNU Toolchain Debug support).

I updated the CDT repository path to correspond to your release (Luna).

Upvotes: 1

Related Questions