Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging not possible in Eclipse

I tried to debug a C++ project in Eclipse Helios, last release. I set breakpoints in some non-main functions, but the debug function never stops there, and I get a warning message which says

"breakpoint attribute problem installation failed"

What could be the reason?

PS: The same problem also happens with Eclipse Galileo, last release PS2: In the same conditions, I installed Ubuntu 9.10 in a virtual machine under parallels 5.0. The I installed Eclipse CDT Helios and did the same procedure. Now I do not get this error. My conclusion at this point is, either gdb from mac is fault suspicious or eclipse for mac has problems in this aspect. As a workaround I am thinking about working in Eclipse for mac and setting up remote debugging so the compilation and gdbsrver run on the virtual linux machine, at least until somebody proposes a better solution.

like image 706
Open the way Avatar asked Feb 28 '11 12:02

Open the way


People also ask

How do I enable debugging in Eclipse?

A Java program can be debugged simply by right clicking on the Java editor class file from Package explorer. Select Debug As → Java Application or use the shortcut Alt + Shift + D, J instead.

What is F6 and F8 in debug on Eclipse?

F6 = Step Over = Go to the next codeline; if next line is a method, don't go inside of it. F7 = Step Out = process code in the same method and stop in the invoking method. F8 = Reumse = continue to next breakpoint.


2 Answers

Check if this bug report applies to your scenario: https://bugs.eclipse.org/bugs/show_bug.cgi?id=331833

like image 123
JuanZe Avatar answered Sep 24 '22 22:09

JuanZe


I suffered from the same problem and solved it. Try to add "-g" option into the first line in "Makefile" file.

like image 41
minhle_r7 Avatar answered Sep 22 '22 22:09

minhle_r7