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

configure kdevelop to debug in dependent project

Tags: None
(comma "," separated)
cesarpachon
Registered Member
Posts
2
Karma
0
hi! I am new to kdevelop, I have a CMAKE based project that depends in a external library, that is another CMAKE kdevelop project. I would like to debug my project, stepping into the source code of the external library. there is some way to configure external sources so it may be recognized by GDB?
(I know this question is more about CMAKE rather than kdevelop, but I highly appreciate any help)
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
Yes, the external library needs to be built in debug mode. Then everything should just work.

Greetings,
Sven


I'm working on the KDevelop IDE.
cesarpachon
Registered Member
Posts
2
Karma
0
thanks by your quick reply! you were right, the external library was built in release mode. I added SET(CMAKE_BUILD_TYPE Debug) to the CMakeLists.txt of the library project and rebuild it. after that, with the add_subdirectory command in my project, everything goes on! 8)
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
Fine! Note that you don't need to modify the cmake files for such things; you can just run cmake with the -DCMAKE_BUILD_TYPE=debug option.


I'm working on the KDevelop IDE.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]