Discussion:
[cdt-dev] Debugging tutorial ?
Oodini
2012-04-11 10:05:12 UTC
Permalink
Hello,

I am desesperatly trying to debug my project with Eclipse.

The reference documentation is not up to date, as an official tutorial I found (from an old EclipseCon).
Moreover, the documentation is poor, and just reformulates what there is in the GUI, without explaining anything.

Also, please consider that many people wishing to use CDT come from Windows, and don't know anything about gdb.

Thanks for your work, but I guess you could have more people using your work with better docs (which are, by the way, sparsed on the Eclipse sites).
Marc Khouzam
2012-04-11 13:08:33 UTC
Permalink
-----Original Message-----
Sent: Wednesday, April 11, 2012 6:05 AM
Subject: [cdt-dev] Debugging tutorial ?
Hello,
I am desesperatly trying to debug my project with Eclipse.
If you right-click on your project and select
"Debug As->Local C/C++ Applications" it should start the debugger.
The reference documentation is not up to date, as an official
tutorial I found (from an old EclipseCon).
Yes, the documentation included in eclipse has not been updated
in too long. Contributions would help get the ball rolling.
Moreover, the documentation is poor, and just reformulates
what there is in the GUI, without explaining anything.
Also, please consider that many people wishing to use CDT
come from Windows, and don't know anything about gdb.
We desperatly need someone to take charge of the Windows side
of the CDT debugging. Someone that would try out features
and report problems regularly would already be a great help.
Thanks for your work, but I guess you could have more people
using your work with better docs (which are, by the way,
sparsed on the Eclipse sites).
I'm glad you took the time to write this email. If people
give up without letting us know why, we can't improve.
I can't promise to get the docs all better soon, but your
point will hopefully remind us to keep the docs updated.

Thanks

Marc
Oodini
2012-04-11 14:16:43 UTC
Permalink
Post by Marc Khouzam
If you right-click on your project and select
"Debug As->Local C/C++ Applications" it should start the debugger.
I managed to launch the debugger, but gdb doesn't stop at my breakpoints.
Post by Marc Khouzam
Yes, the documentation included in eclipse has not been updated
in too long. Contributions would help get the ball rolling.
We desperatly need someone to take charge of the Windows side
of the CDT debugging. Someone that would try out features
and report problems regularly would already be a great help.
Actually, I am developing on Linux by now, but I come from Windows, and so doesn't know anything about gdb.
And I guess that people from me could be the main source of CDT users :
Windows users will use Visual C++, and Linux users will use emacs, vim... (that's what happens at my office).
Post by Marc Khouzam
I'm glad you took the time to write this email. If people
give up without letting us know why, we can't improve.
I can't promise to get the docs all better soon, but your
point will hopefully remind us to keep the docs updated.
I would be OK to be associated with someone knowing well the Linux environment and CDT.
I could provide some newbie questions and problems, and write the doc. But I need support.
Marc Khouzam
2012-04-11 14:49:47 UTC
Permalink
-----Original Message-----
Sent: Wednesday, April 11, 2012 10:17 AM
To: CDT General developers list.
Subject: Re: [cdt-dev] Debugging tutorial ?
Post by Marc Khouzam
If you right-click on your project and select
"Debug As->Local C/C++ Applications" it should start the debugger.
I managed to launch the debugger, but gdb doesn't stop at my
breakpoints.
You may want to look in the CDT forums, which is better suited
for new users.
http://www.eclipse.org/forums/index.php/f/80/
Post by Marc Khouzam
Yes, the documentation included in eclipse has not been updated
in too long. Contributions would help get the ball rolling.
We desperatly need someone to take charge of the Windows side
of the CDT debugging. Someone that would try out features
and report problems regularly would already be a great help.
Actually, I am developing on Linux by now, but I come from
Windows, and so doesn't know anything about gdb.
And I guess that people from me could be the main source of
Windows users will use Visual C++, and Linux users will use
emacs, vim... (that's what happens at my office).
Post by Marc Khouzam
I'm glad you took the time to write this email. If people
give up without letting us know why, we can't improve.
I can't promise to get the docs all better soon, but your
point will hopefully remind us to keep the docs updated.
I would be OK to be associated with someone knowing well the
Linux environment and CDT.
I could provide some newbie questions and problems, and write
the doc. But I need support.
Great. On the CDT wiki, it mentions how to get started with
contributions to CDT:
http://wiki.eclipse.org/Getting_started_with_CDT_development

You can also open bugs at
https://bugs.eclipse.org/bugs (under tools->CDT)
and contribute some documentation in whichever format
is easier and we can work together to include it with CDT.

Thanks!

Marc
xgsa
2012-04-11 15:12:30 UTC
Permalink
-------- Original message --------
Post by Oodini
Post by Marc Khouzam
If you right-click on your project and select
"Debug As->Local C/C++ Applications" it should start the debugger.
I managed to launch the debugger, but gdb doesn't stop at my breakpoints.
It may happen if you compile your program without debug information
("-g" switch for gcc).


BTW, Qt Creator detects this case somehow and warns user about it. It
would be great if Eclipse does the same.


Anton
Marc Khouzam
2012-04-11 15:20:11 UTC
Permalink
-----Original Message-----
Sent: Wednesday, April 11, 2012 11:13 AM
To: CDT General developers list.
Subject: Re: [cdt-dev] Debugging tutorial ?
-------- Original message --------
Post by Oodini
Post by Marc Khouzam
If you right-click on your project and select
"Debug As->Local C/C++ Applications" it should start the debugger.
I managed to launch the debugger, but gdb doesn't stop at
my breakpoints.
It may happen if you compile your program without debug information
("-g" switch for gcc).
BTW, Qt Creator detects this case somehow and warns user about it. It
would be great if Eclipse does the same.
If you have time, could you write an enhancement bug?

Thanks

Mar
xgsa
2012-04-13 15:02:00 UTC
Permalink
I have filed a bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=376725.

I also figured out how Qt Creator performs this checkand described it
there. However I am not sure whether this way is acceptable for CDT.
Could we make a dependency on objdump?


Thanks,
Anton

-------- Original message --------
Post by Marc Khouzam
-----Original Message-----
Sent: Wednesday, April 11, 2012 11:13 AM
To: CDT General developers list.
Subject: Re: [cdt-dev] Debugging tutorial ?
-------- Original message --------
Post by Oodini
Post by Marc Khouzam
If you right-click on your project and select
"Debug As->Local C/C++ Applications" it should start the debugger.
I managed to launch the debugger, but gdb doesn't stop at
my breakpoints.
It may happen if you compile your program without debug information
("-g" switch for gcc).
BTW, Qt Creator detects this case somehow and warns user about it. It
would be great if Eclipse does the same.
If you have time, could you write an enhancement bug?
Thanks
Mar
_______________________________________________
cdt-dev mailing list
https://dev.eclipse.org/mailman/listinfo/cdt-dev
Oodini
2012-04-12 12:13:31 UTC
Permalink
Post by Marc Khouzam
You may want to look in the CDT forums, which is better suited
for new users.
http://www.eclipse.org/forums/index.php/f/80/
Actually, I had to change the launcher.
In the dialog box, when you click on the question mark, after several seconds, you get :
"The context help for this user interface element could not be found."

Obviously, there is nothing about this setting in the general documentation...

I am going to ask some information in the forum.
Post by Marc Khouzam
Great. On the CDT wiki, it mentions how to get started with
http://wiki.eclipse.org/Getting_started_with_CDT_development
Do I really need to dowload the Eclipse sources to write some docs ?
Marc Khouzam
2012-04-12 13:33:04 UTC
Permalink
Post by Oodini
Post by Marc Khouzam
Great. On the CDT wiki, it mentions how to get started with
http://wiki.eclipse.org/Getting_started_with_CDT_development
Do I really need to dowload the Eclipse sources to write some docs ?
If you want to modify the doc that is part of Eclipse/CDT itself
that is a modification in actual plugins. But if that is too much
of a hurdle, you can also add documentation to the wiki FAQ:
http://wiki.eclipse.org/CDT/User/FAQ

If you want a review of what you write first, then write a bugzilla
include the text you propose, and once it is reviewed, you can feel
more confident about adding it to the wiki.

Parts of this wiki FAQ could eventually make it to the documentation
plugin.

Thanks

Marc
Andrew Overholt
2012-04-12 16:21:50 UTC
Permalink
Post by Marc Khouzam
Post by Oodini
Post by Marc Khouzam
Great. On the CDT wiki, it mentions how to get started with
http://wiki.eclipse.org/Getting_started_with_CDT_development
Do I really need to dowload the Eclipse sources to write some docs ?
If you want to modify the doc that is part of Eclipse/CDT itself
that is a modification in actual plugins.
If the CDT moved to Mylyn WikiText-generated documentation, the docs
could be entirely done on the web and then translated into .html for
inclusion in plugins (like now) for releases or periodically.

Andrew
Continue reading on narkive:
Loading...