Registered Member
|
Hi.
I need to debug KDevelop. I have cloned the repo, opened it with KDevelop, wrote some code, compiled it and tried to debug. But the breakpoints are working only within KDevelop but not inside KDevPlatform. The breakpoints are always listed as awaiting ones. Both are compiled with CMAKE_BUILD_TYPE=Debug. What I am doing wrong?
Last edited by zhigalin on Fri Jun 10, 2016 9:51 am, edited 2 times in total.
|
Global Moderator
|
|
Registered Member
|
Yes. P.S. See the updated question. |
Global Moderator
|
Is the kdevelop you built actually linked against your self-built kdevplatform, or do you maybe have a system one floating around? Try to check that with ldd ...
I'm working on the KDevelop IDE.
|
Registered Member
|
You're right. How I should compile KDevelop to link it with mine KDevPlatform? |
KDE Developer
|
Edit: I was wrong, it's CMAKE_PREFIX_PATH and not CMAKE_MODULE_PATH, changed that.
-----------
You need to first compile KDevPlatform and install it to somewhere, say ~/stage.
Then append that path to CMAKE_PREFIX_PATH when configure KDevelop
This way cmake will find your newly built KDevPlatform. Hint: you can locally change KDevPlatform version to a higher number than the one in the system and modify KDevelop to require at least that number. Then you can be sure that you are building against the custom build of KDevPlatform. In order to run KDevelop built this way, you have to specify various paths
|
Registered Member
|
Mmm, I'm using KDevelop 5 build with kdesrc, is there an other way? |
Registered Member
|
Solved by adding cmake build type=Debug to kdesrc-build. |
Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]