views:

227

answers:

1

I would like to use DDD to debug the source code of Gedit and GTK+. I start DDD by command ddd gedit. Now I can run the project and I found the source window but I can't see the sources of Gedit and GTK+ nor run the program line by line. How to do that?

+1  A: 

You have to recompile your sources adding debug symbols.

Look in the documentation of gedit to see how you can compile with them. There should be a Developers or Hackers section that explains how to do that.

klez
Thanks! I found the solution at http://jameswestby.net/tips/tips/compiling-debian-package-for-debug.html
Jaska
Now I have done thatdbkg -i gedit_2.26.1-0ubuntu1_i386.debI tried to start ddd by command ddd gedit_2.26.1-0ubuntu1_i386.debbut I still can't debug the code.
Jaska
no, you don't have to open the .deb file, but the executable one (open a shell, type 'which gedit' without quotes and open with ddd the file it outputs)
klez
I typed which gedit and it outputs/usr/bin/geditBut still ddd /usr/bin/gedit says no debugging symbols. I think this is the version which was installed already. However, for the new package which gedit_2.26.14 outputs nothing.
Jaska
Any ideas why it outputs nothing?
Jaska