Kdevelop steps and breakpoints not working

2020-04-06 06:51发布

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条回答
爷、活的狠高调
2楼-- · 2020-04-06 07:34

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

查看更多
登录 后发表回答