The error message: Can't debug this program! Are you sure you compiled it with -ggdb? I am using CS50 to debug my C++ program, but after typing "debug50 ./(program name)", it showed the above error message. How can I compile it with ggdb instead of g?
1 Answer
My understanding is that debug50
only works with C, not C++. But if you run with -gddb
, then you might be able to use gdb to debug.