Problems debugging with gideon

jbb jbb at kdevelop.org
Thu Jan 2 10:50:05 UTC 2003


On Mon, 30 Dec 2002 02:55, Alan Chandler wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I build gideon from CVS source yesterday.
>
> I have build a standard kde app using gideon and am trying to use the
> debugger to understand how it works (and eventually start to change it to
> do what I want).
>
> However, when setting a breakpoint - nothing appears to happen, and
> although the breakpoint is listed in the breakpoint window I don't think it
> gets set as
>
> 1)  There is no indication in the source code display

Do you have the icon border displayed? (Settings/Configure Editor/View 
defaults/Show icon border)

When a breakpoint is set a blue circle is displayed in the icon border. This 
changes to red when gdb can set the breakpoint in the code. There are several 
reasons gdb cannot set a breakpoint. 

1/ You've set it in source that isn't compiled into the program! (It 
happens.:)
2/ You haven't compiled the program with debug on.
3/ You've set it in a shared library that isn't loaded.
4/ The shared library you wish to debug is not installed, so you're using an 
old library that doesn't have the new code. (See 1/ above :-)
5/ Other - I forget now :-)

> 2)  gdb reports (in the gdb window)
>
> (gdb) break kbooked.cpp:179
> No symbol table is loaded.  Use the "file" command.

Ah - You have not compiled with debug on (---enable-debug) :-)

So once you have the icon border displayed, the source compiled with debug on 
and installed, then the debugger should work. It's not perfect, but it does 
work.

It would be good if the editor were able to display breakpoints (or other user 
marked text eg bookmarks) by highlighting the line and/or the icon border. 
This would eliminate this "bug". (I know I'm repeating myself :-), and I have 
no code for this :(( )

jbb





More information about the KDevelop-devel mailing list