[webkit-qt] how to debug qt webkit in an IDE?
Ademar Reis
ademar.reis at openbossa.org
Mon Sep 5 05:55:29 PDT 2011
On Sun, Sep 4, 2011 at 6:34 AM, Li Li <fancyerii at gmail.com> wrote:
> hi all,
Hi Li.
> I am interested in qt webkit and want to read and debug its codes. I
> follow the instructions in http://trac.webkit.org/wiki/BuildingQtOnLinux . I
> get the source code by git clone git://gitorious.org/webkit/webkit.git.
> And I can compile it by Tools/Scripts/run-launcher --qt --debug. And follow
> this post http://old.nabble.com/Debugging-Webkit--td29157328.html. I can
> debug it with gdb. But I am familiar with programming in an IDE such as
> eclipse/netbeans/visual studio/qt creator. How could I use any IDE to
> compile and debug it?
You can try Qt Creator, it's part of the SDK and is one of the best
IDEs for development with Qt. Unfortunately due to the way QtWebKit
build files are structured (the .pro and .pri files), I had some
problems making it find and understand all files used by the project,
but debugging works fine. You can try googling for some article and,
of course, ask some specific questions here or on IRC if you have some
problems using it.
BTW, to build WebKit you use Tools/Scripts/build-webkit, not run-launcher.
> Another question. qt-webkit is a cross-platform browser. But the in
> http://trac.webkit.org/wiki/BuildingQtOnWindows, it seems to build it in
> windows, we need Qt installed. And also this wiki don't need get latest
> source code from git repository. Does that mean the windows version don't
> catch up with the progress of webkit? e.g. I modified some codes after I
> clone source codes from git. I can't make these modifications in windows? Or
> I have to build a modified version of qt? Thanks!
I don't understand what you mean by "this wiki don't need get latest
source code from git"... It's the same codebase: you clone the same
git repo on linux, windows or whatever. You can even share the same
directory between different OSes to test your changes.
But to build qtwebkit trunk you need Qt5, which is under heavy
development right now. I really don't know how well it builds/works on
Windows. If it doesn't, you may prefer to stick with QtWebKit-2.2 +
Qt-4.7 SDK (or Qt-4.8 beta if you can build everything from source).
Cheers,
- Ademar
--
Ademar de Souza Reis Jr. <ademar.reis at openbossa.org>
Nokia Institute of Technology
More information about the webkit-qt
mailing list