Main Page | Recent changes | Edit this page | Page history

Printable version | Disclaimers | Privacy policy

Not logged in
Log in | Help
 

KDevelop 4/Tips and tricks

From KDevelop

< KDevelop 4

[edit] How to add include paths to the parser ?

Add a .kdev_project file to the root directory of your project containing the paths that you want to parse.


[edit] How to debug kdevelop ?

For debugging kdevelop you'll need to do this (should be doable in .gdbinit):

set follow-fork-mode child
break <kdevelop>/app/main_internal.cpp:62
continue
.... (wait until it stops at main_internal.cpp)
set follow-fork-mode parent
continue

The reason is that if you enable follow-child once, gdb will also try to hook into other subprocesses like cmake or qmake runs being done. So you need to reset it once you're in the "real app". The follow-child is (obviously) needed to let gdb actually hook into the real app which loads everything.

Of course the envvar is still used and hence you can just as well do

KDEV_SESSION="uuid" gdb kdevelop.bin

Retrieved from "http://www.kdevelop.org/mediawiki/index.php/KDevelop_4/Tips_and_tricks"

This page has been accessed 865 times. This page was last modified 20:13, 4 February 2010. Content is available under GNU Free Documentation License 1.2.


[Main Page]
Main Page
Community portal
Current events
Recent changes
Help
Donations

Edit this page
Discuss this page
Page history
What links here
Related changes

Special pages
Bug reports