Reputation: 21
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
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
Reputation: 23
Does CLion support modes like debug or release? If so, please check in what mode you are trying to debug.
Upvotes: 2