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.
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.
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.
Check if this bug report applies to your scenario: https://bugs.eclipse.org/bugs/show_bug.cgi?id=331833
I suffered from the same problem and solved it. Try to add "-g" option into the first line in "Makefile" file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With