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.
Does CLion support modes like debug or release? If so, please check in what mode you are trying to debug.
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
当您调用不带参数的函数时,它似乎起作用。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.