I'm trying to find a decent debugger for C with a GUI interface that allows me to do atleast the usual stuff of setting break points, stepping over each line of code. I'm having a hard time finding one,(GDB command line didn't do good) and what's more, I'm on ubuntu not windows, so I wonder if there is such a debugger.


Code::Blocks is a cross platform IDE which gives you a GUI wrapper to gdb, as well as providing a lot of development help - it is free, gratis & open source.

You can:

  • Set breakpoints
  • Step through the code
  • Inspect values
  • etc.

enter image description here

  • The problem with codeblocks' debugger is that it lets debug only on projects and not in empty files, and doing that always(making a project for each file to debug is a bit annoying), the problem is same for netbeans. VScode's debugger seemed descent but, I'm not being able to configure it for C(Some file open continuous errors)) – mathmaniage Nov 8 '17 at 10:54
  • Plus, I couldn't find the column that tells us the variable values or the stack trace in codeblock. – mathmaniage Nov 8 '17 at 10:55
  • 1
    For your first issue you can attach to a running process see dummies.com/programming/cpp/… - if you tell it where the source code is then things go a lot easier. – Steve Barnes Nov 8 '17 at 17:26
  • 1
    To inspect a given variable when you are at a break point hover over it in the source code, you can also right click and add to the watches on the right side of the screenshot. – Steve Barnes Nov 8 '17 at 17:28

Emacs provides a graphical interface to GDB, as well as other debuggers, through its Grand Unified Debugger (GUD) library.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.