This forum has been archived. All content is frozen. Please use KDE Discuss instead.

kdesrc-build: getting debug info in dolphin binary

Tags: None
(comma "," separated)
xaxazak
Registered Member
Posts
8
Karma
0
Not sure if I'm using it right, but I managed to get kdesrc-build to produce a functional dolphin.
I tried the --debug parameter (as used in https://community.kde.org/Guidelines_an ... rom_source).

I'm assuming there's no debug info because "readelf --debug-dump=decodedline kde-5/bin/dolphin" outputs nothing, and kdbg doesn't find anything either.

What do I need to do to get a binary I can debug with kdbg? Thanks.

OS: Mint 18 - XFCE x64.
User avatar
ivan
KDE Developer
Posts
918
Karma
14
OS
The --debug switch turns on the debugging output of kdesrc-build - it does not affect the build itself.

If you want to have the debugging symbols, you need to add cmake-options -DCMAKE_BUILD_TYPE:STRING=debug either to the global section of kdesrc-buildrc or to the dolphin module.

edit:
This should also work, or at least it used to:

Code: Select all
kdesrc-build --cmake-options="-DCMAKE_BUILD_TYPE=Debug" dolphin


Image
xaxazak
Registered Member
Posts
8
Karma
0
Thanks, that worked. Now I just need to find the right versions of the .cpp sources.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], ourcraft