MAURICE
MAURICE

Reputation: 21

Clion : Debug into cpp class

I want to debug a C++ programm with Clion, my debugger works when I put a breakpoint into the main's class but if I put a breakpoint into a class, gdb doesn't stop the running program when we have to enter into a function of this class from the main's class.

I don't really know why :/ Is it a normal feature ?

Thanks for helping.

Upvotes: 2

Views: 1323

Answers (3)

Michał Cłapiński
Michał Cłapiński

Reputation: 98

I think there's some issue with the bundled GDB CLion is using. Switching to system GDB helped in my case. To do so:

File -> Settings -> Build, Execution, Deployment -> Toolchains -> Debugger and switch "Use bundled GDB" to "Use specified GDB" and supply path: /usr/bin/gdb

Upvotes: 1

Deividas
Deividas

Reputation: 23

Does CLion support modes like debug or release? If so, please check in what mode you are trying to debug.

Upvotes: 2

MAURICE
MAURICE

Reputation: 21

It seems to work when you call functions with no arguments.

Upvotes: 0

Related Questions