8

i am a new to KDevelop. I am using ubuntu to develop C.

My problems as follows: I have already trigger breakpoint in KDevelop. After I click F9. The KDevelop just show "*****Exit normally******". I am not quite sure what the problem it is?

Looks Like I can't debug.

And I can't see the print. enter image description here

fhlkm
  • 333
  • 1
  • 6
  • 14
  • Maybe try to print a "\n" in there somewhere or flush sometimes. – PeterT Oct 07 '14 at 21:44
  • No, with a debugger it should definitely stop on the five break points he set. I don't know how KDevelop handles debuggers, but maybe you need to setup a debugger first in the settings? – dom0 Oct 07 '14 at 22:16
  • Possible duplicate of [Kdevelop steps and breakpoints not working](http://stackoverflow.com/questions/24322956/kdevelop-steps-and-breakpoints-not-working) – Ciro Santilli OurBigBook.com May 05 '16 at 13:45

2 Answers2

7

Check the CMakeLists.txt. In my case, even in Project-> Open Configuration... I make CMAKE_BUILD_TYPE as Debug, but in CMakeLists.txt is Release, the build still uses Release mode. Hopefully it is helpful.

willSapgreen
  • 1,365
  • 2
  • 17
  • 27
5

Go to Run -> Configure Launches, [Add New...] -> Compiled Binary, select Debug on the left side, Debugger executable: and select /usr/bin/gdb.

Hope it helps.

dom0
  • 7,356
  • 3
  • 28
  • 50