Breakpoints

gregor.mi.sw codestruct at posteo.org
Sat Apr 6 15:34:50 BST 2019



Am 23.03.19 um 14:42 schrieb José Antonio Martínez Escobedo:
> Hi Gregor,
> 
> Yes it's a C++ project and I have been using the -g option, but I'm not sure
> 
>   if this implies compilation with debug information...I'm too noob about Kdevelop.
> 
> El sáb., 23 mar. 2019 a las 13:56, gregor.mi.sw (<codestruct at posteo.org 
> <mailto:codestruct at posteo.org>>) escribió:
> 
> 
> 
>     Am 23.03.19 um 13:33 schrieb José Antonio Martínez Escobedo:
>      > Hi all!
>      >      I'm new to Kdevelop, and I'm fascinated with it. But when I togle a breakpoint the debugger
>      > doesnt stops the execution there, instead it exit the program and return to code mode. Can
>     you help me?
>      >
>      > Kind regards
>      >
>      > José Antonio
> 
>     Hi José Antonio,
> 
>     I assume it is C++ project. Did you compile your project with debug information?
> 
>     Gregor
> 

See man gcc

   Options for Debugging Your Program
        To tell GCC to emit extra information for use by a debugger, in almost all cases
        you need only to add -g to your other options.

So, the -g option is correct. Did you select gdb in the Launch Configuration?

Gregor



More information about the KDevelop mailing list