This feature is experimental and may change or be removed in the future.


CLion is a C/C++ IDE from JetBrains, available from the JetBrains website.

Undo supplies a plugin which integrates UDB into CLion, allowing you to interactively debug an application from within the CLion IDE.

Enabling UDB within CLion

  1. Configure CLion to use UDB.

    Choose File › Settings… › Build, Execution, Deployment › Toolchains.

    Under Debugger choose Custom GDB executable.

    If you have previously installed UDB, enter /usr/local/bin/udb in the text box. Otherwise, use the Browse button and navigate to the location of the udb executable.

    When CLion recognises the pathname, a message will appear, e.g. “✓ Version: 10.2”.

  2. Install the plugin.

    Choose File › Settings… › Plugins.

    Select the Marketplace tab, enter udb in the search box, press Install and restart CLion.

Using UDB within CLion

Starting a debug session works exactly as normal with CLion. However the debugger toolbars have some new buttons.

On the left toolbar, the Resume button is followed by a ReverseContinue Reverse Resume button, which executes backwards from the current point until a breakpoint or watchpoint is hit, or execution is interrupted.

On the top toolbar, there are new UgoUndo Undo, ReverseStepOut Reverse Step Out, ReverseStepInto Reverse Step Into and ReverseStepOver Reverse Step Over buttons.

If you are familiar with other UDB commands, they can be entered at the Debug GDB tab.