no debugging of C++ programs on linux? [message #200291] |
Sat, 25 August 2007 18:52  |
Eclipse User |
|
|
|
hi,
I am just beginning to work with Eclipse and CDT.
My problem is that I cannot debug my C++-program. Everything seems to be
ok, i.e. I can compile and run the program. But when I want to debug it
the debugger (gdb) does not stop at breakpoints. The program runs just as
if there were no breakpoints. There is no error message.
I tried it with two configurations with the same problem
- openSuse10.1, Eclipse 3.1.1, CDT 3.0.2, Qt4 library for GUI
- openSuse10.2. Eclipse 3.2.1, CDT 3.1.1, Qt4 library for GUI
With a C-program the debugger is working as expected.
Tips are very welcome - without debugging programming is very tedious.
Nikosch
|
|
|
Re: no debugging of C++ programs on linux? [message #200349 is a reply to message #200291] |
Mon, 27 August 2007 14:13   |
Eclipse User |
|
|
|
Originally posted by: spam.noway.com
On Sat, 25 Aug 2007 22:52:34 +0000, nikosch wrote:
> hi,
>
> I am just beginning to work with Eclipse and CDT.
> My problem is that I cannot debug my C++-program. Everything seems to be
> ok, i.e. I can compile and run the program. But when I want to debug it
> the debugger (gdb) does not stop at breakpoints. The program runs just as
> if there were no breakpoints. There is no error message.
>
> I tried it with two configurations with the same problem
> - openSuse10.1, Eclipse 3.1.1, CDT 3.0.2, Qt4 library for GUI
> - openSuse10.2. Eclipse 3.2.1, CDT 3.1.1, Qt4 library for GUI
>
> With a C-program the debugger is working as expected.
>
> Tips are very welcome - without debugging programming is very tedious.
>
> Nikosch
What are the debugging flags that are being passed to GCC?
C++ debugging works without a problem on my Project, Eclipse 3.3 CDT 4.0
though. You may want to consider giving that a try, it's well worth it. =)
--
Stephan
2003 Yamaha R6
君のこと思い出す日なんてないのは
君のこと忘れたときがないから
|
|
|
|
Re: [solved]no debugging of C++ programs on linux? [message #200574 is a reply to message #200365] |
Tue, 28 August 2007 15:25  |
Eclipse User |
|
|
|
Now it is clear:
The debugging info from compilation was missing (gcc -g).
As a newcomer I expected that the debug configuration of eclipse is
handling the correct compilation with debugging info. But eclipse is not
responsible for the make file. It is Qt which generates it, and there is
the place where to do the necessary settings.
O dear, it was a hard way. But now it works.
Nikosch
|
|
|
Powered by
FUDForum. Page generated in 0.03363 seconds