Ondřej Ryška
Ondřej Ryška

Reputation: 491

Kdevelop steps and breakpoints not working

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?

Upvotes: 7

Views: 4394

Answers (1)

milianw
milianw

Reputation: 5336

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

Upvotes: 4

Related Questions