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
2009-08-15 15:31:01
Thanks! I found the solution at http://jameswestby.net/tips/tips/compiling-debian-package-for-debug.html
Jaska
2009-08-15 15:54:27
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
2009-08-15 19:53:52
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
2009-08-16 17:59:36
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
2009-08-16 18:51:40
Any ideas why it outputs nothing?
Jaska
2009-08-20 18:35:42