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

    Select Use specified GDB:

    If you installed UDB enter /usr/local/bin/udb in the text box. Otherwise enter the location of the udb executable (the button to the right can be used to navigate the file tree).

    When CLion recognises the pathname, a message will appear, eg “Version: 9.2”.

  2. Install the plugin.

    Choose File -> Settings… -> Plugins

    Click on Search plugins in marketplace and find the Time Travel Debug for C/C++ plugin offered by Undo. Install the plugin and then restart CLion to enable it.

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 ReverseStepOver Reverse Step Over, ReverseStepInto Reverse Step Into and ReverseStepOut Reverse Step Out buttons.

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