How to debug konqueror

David Faure dfaure at trolltech.com
Wed Jul 23 11:05:34 BST 2003


On Wednesday 23 July 2003 04:39, Ned Flanders wrote:
> Hi
> 
> There's a bug in the sidebar_widget of Konqueror about
> the sizes of the splitter's panes (they're not kept
> between executions).  

Isn't this what Waldo fixed recently? Make sure to get your KDE sources
from (anon)cvs, to have the latest ones.

> I want to use the debugger to 
> improve my knowledge of what's going on in this widget
> but whenever I try to set a breakpoint in the function
> readConfig of file sidebar_widget.cpp gdb gives me an
> error saying that it doesn't find the source file
> sidebar_widget.cpp (the path I use is good).  I
> suspect that I don't set my breakpoint after the
> loading of the shared object konqueror.so, but I have
> no other clue.
> 
> My question is : How do you debug konqueror?  What can
> be the procedure to make gdb hit a breakpoint in the
> readConfig function of sidebar_widget.cpp?  Note that
> I'm a programmer and used to Visual C++, but I'm new
> to KDE development (even if I use it since KDE
> 1.1...).

http://developer.kde.org/documentation/other/gdb-doc.html
(especially the part about "break main ; run ; break ... ; continue" )

-- 
David FAURE, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
Qtella users - stability patches at http://blackie.dk/~dfaure/qtella.html




More information about the kfm-devel mailing list