Re: Breakpoints
"gregor.mi.sw" <[email protected]> Sat, 6 Apr 2019 16:34:50 +0200
| Newsgroups | gmane.comp.kde.users.kdevelop |
|---|---|
| Message-ID | <[email protected]> |
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 (<[email protected] > <mailto:[email protected]>>) 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