1. CMakeLists.txt needs to be set to Debug mode
Example
cmake_minimum_required(VERSION 2.8) Project (Own_test) include_directories("/usr/include/eigen3") # Debug mode SET(CMAKE_BUILD_TYPE "Debug") # Release mode # SET(CMAKE_BUILD_TYPE "Debug") # Or just do not set CMAKE_BUILD_TYPE add_executable(Eigen_test test_eigen.cpp)
2. In Kdevelop
Run -> Configure Launches... Set it up (usually the default is fine. Since I configured python before, I created a new Configuration)
Create breakpoints in the code;
ctrl + alt + B (or mouse)
Run F9 (or mouse action)
Step F10
Jump into F11
Jump out of F12