GNU Emacs is an extensible, customizable, free/libre text editor, bundled with most Linux distros. For more information, see the Emacs page on the GNU website.
Emacs ships with support for C and C++ debugging via GDB, and can be configured to use UDB.
Using UDB in Emacs¶
Start a debugging session as normal by typing
Edit the command line to replace
gdbwith udb, for example:
udb -i=mi examples/cache
This assumes that udb is installed or is otherwise on your path. If it isn’t then supply the full path to the udb executable.
Using UDB by default¶
To avoid having to edit the command line on every invocation customize the Emacs
gud-gdb-command-name, set it to
udb -i=mi, and “Save for Future