Kdevelop steps and breakpoints not working

2020-04-06 06:39发布

问题:

I need using steps (Step over, Step over instruction...) and breakpoints.

But the options Step over, Step over instruction and ect. are disabled in menu Run.

And when I put breakpoint into program, program don´t stop on this breakpoint.

I found that I must turn off optimization of compiler and linker. But I don´t know how turn off optimization in Kdevelop 4.4.1.

Where I can find this setting? Or cause of problem with steps and breakpoints is other than compiler optimization?

回答1:

You need to compile in debug mode. What toolchain do you use for compiling? CMake? If so, set CMAKE_BUILD_TYPE to Debug.