Setting up debugging and development environment
Miljenko Jakovljevic
micky686 at gmail.com
Sun Mar 18 15:47:39 UTC 2018
Hi,
In order to be able to run kdevelop in gdb I have added this line to the
CMakeLists.txt file in the kdevelop root directory:
set(CMAKE_BUILD_TYPE, "debug")
set(CMAKE_CXX_FLAGS_DEBUG "-ggdb")
Then I use:
cmake CMakeLists.txt
make clean (without this the build often fails with the "main not found"
message)
make -j8
gdb kdevelop (gives: no debugging symbols found)
What am I doing wrong that the debug symbols are not set?
Is there a guide about the development environment for kdevelop or
something more general?
Best regards!
Mili
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20180318/c5de9f6b/attachment.html>
More information about the KDevelop-devel
mailing list