Kdevelop steps and breakpoints not working

僤鯓⒐⒋嵵緔 提交于 2019-12-04 03:28:09

问题


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.



来源:https://stackoverflow.com/questions/24322956/kdevelop-steps-and-breakpoints-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!