Clion logo

The CLion Blog

A Cross-Platform IDE for C and C++


CLion 2016.2 released: Remote GDB debug, Doxygen support, operators generation, and more

As of today, CLion 2016.2 is generally available!

This is our second release of 2016, building on the idea of releasing more often and bringing you the latest features faster. With many new fantastic tools, CLion can help you become a true C++ rockstar:

  • Inspect code more efficiently thanks to improved performance of debugger drivers and the remote GDB debug possibility.
  • Keep your code well-documented with Doxygen support (and thus reduce maintainability costs).
  • Save time on typing, with lots of new code generation options.
  • Work with CMake project model more easily thanks to smart CMake support.

Download CLion 2016.2

Let’s take a closer look at these and other capabilities available in CLion 2016.2.

Debugger performance

GDB and LLDB debugger drivers have been overhauled to improve both correctness and performance. We thank all our users for your collaboration – all your logs, sample projects and use case details finally made this possible!

If you’ve ever run into ‘command timeout’ in CLion, we encourage you to get this build as the problem should be fixed now. Lots of other issues have been fixed as well: ‘Variables’ windows that wasn’t updated on variable setting, problems with showing frames, incorrect debugger exit, and more.

As an important result, debugger performance has seen a huge boost – up to 600x in some cases:

The supported GDB version was updated to 7.11 and LLDB updated to 3.8. Besides, Linux users can now benefit from using LLDB (as it was previously available on macOS only).

Remote GDB debug

It’s finally here! One of the most awaited features has finally made its way into CLion. Run an executable on a target machine under gdbserver, connect remotely using CLion remote GDB configuration, and inspect code more powerfully from the IDE’s debugger. Set breakpoints to stop at, evaluate expressions, inspect variables views, change variable values on the fly, and more. For more details about the supported platforms and configuration, see this earlier blog post.

Doxygen support

Documenting code is a best practice that greatly aids code maintenance and support. Now CLion helps you with this by supporting the well-known Doxygen format.

See the Doxygen documentation preview in the Quick Documentation pop-up (Ctrl+Q on Linux/Windows, F1 on macOS), navigate to the function parameters from their description in Doxygen comments, and rely on function and function parameters rename that update Doxygen references automatically:

While adding new Doxygen comments to your code base, use Doxygen commands and function parameters completion, or simply generate the stub for Doxygen comments (it will work if your function has parameters, returns a value, or throws an exception):

More details on Doxygen support in CLion can be found in this blog post.

Code generation

Saving time on typing is really easy with CLion. The many options of its ‘Generate’ menu (Alt+Insert on Linux/Windows, ⌘N on macOS) have been expanded with equality, relational and stream output operators. Select if you’d like to generate in-place, as class members, use std::tie for the implementation, and more:

Generate definitions (introduced in 2016.1) got updated behavior templates. Now CLion is able to adapt to the patterns you are using in your project. It can detect and support three possible patterns:

  • declarations are located in header files, definitions are in cpp-files;
  • class/struct is located in header file only; or
  • class/struct is located in cpp-file only.

If you switch from one of these patterns to another, CLion will pick up on that and behave accordingly when you use code generation the next time. More on that here.

Another way to save time on typing is the improved Complete Statement feature (Ctrl+Shift+Enter on Linux/Windows, or ⇧⌘⏎ on macOS). It helps you create syntactically correct code constructs by inserting the necessary syntax elements and getting you in position to start typing the next statement. It can complete namespaces, classes, enums, enum classes, structs and control statements:

Learn more about Complete Statement in this earlier blog post.

Code formatting

CLion allows you to configure plenty of code style rules that will be applied on the fly as you type, to help you keep code well-formatted and thus easy to read and maintain. The newest settings fine-tune wrapping for lines after function return type in the scope of a class, in global and namespace scopes, lambda capture list, and in ‘<<‘ and ‘>>’ operators.

Also, the list of predefined code styles has been expanded with LLVM and LLDB styles.

Smart CMake support

We keep working to make CMake easier to use in CLion. 2016.2 adds refactoring support for CMake:

  • Rename (Shift+F6 on Linux/Windows, ⇧F6 on macOS) for users symbols (like functions or macros) – all the usages will be updated accordingly.
  • Safe delete for files – related CMake commands will be updated, and a warning will appear in case of a possibly incorrect command.

To help you become a CMake guru, CLion also offers completion and navigation for user symbols, together with the new Boost-related live templates:

If you want your CMake script to detect that it’s being called from CLion ( and if so, set special variables/paths or execute some additional scripts of your choice), you can now do that with the special environment variable, CLION_IDE. Environment variable completion in CMake will make the task even easier:

Editor and tool windows improvements

If you a fan of fonts with ligatures (e.g. FiraCode, Hasklig, Monoid or PragmataPro), you’ll be pleased to know that CLion now supports such fonts. Simply go to Editor | Colors & Fonts | Font settings, choose a corresponding font, and select the ‘Enable font ligatures’ option:

To spice up your editor’s look, you can now set a custom background image. Use Find Action (Shift+Ctrl+A on Linux/Windows, ⇧⌘A on OS X), type Set Background Image, select an image and configure its settings in the dialog that appears:
Note, that you can choose different images for different projects.

If you work with long files, a new alphabetical sorting in Structure View (Alt+7) can come in handy to locate entities quicker (as opposed the reflecting the order in the original file).

Other changes

There’s a lot more in CLion 2016.2:

  • Important improvements in VCS support:
    • Files not yet under version control are now shown in the commit dialog, so you’ll never forget anything important.
    • The Log view for Git and Mercurial loads in the background on every change, so it’s always ready when you need it.
    • Patches can now be applied from the clipboard or by simply dragging them into the IDE. There’s also a Show Diff action to check the changes over your local version, and even a possibility to apply patches to files that were already moved or renamed.
    • Don’t worry about case-only renames in Git for Windows and macOS, as CLion now treats these situations correctly.
  • The Inspection results window makes it easier to preview the corresponding piece of code immediately, apply a quick-fix or disable a group of inspections in-place.
  • The maximum supported version of MinGW-w64 was updated to 5.*, and Cygwin to 2.*.
  • CLion on Windows now bundles a customized JDK version with font-rendering and focus fixes from the JetBrains team.
  • Swift plugin for CLion adds Swift 2.2 support, Introduce Variable refactoring and parameter placeholders for Swift. For more details head to the AppCode site.

To learn more, please visit the What’s new in CLion 2016.2 page on our website.

Download CLion 2016.2

Your CLion Team
The Drive to Develop

Comments below can no longer be edited.

32 Responses to CLion 2016.2 released: Remote GDB debug, Doxygen support, operators generation, and more

  1. M says:

    July 20, 2016

    Congratulations !

  2. Dmitry Romanov says:

    July 20, 2016

    Great!!! But… What about debugging with OpenOCD?

    • Roman Popov says:

      July 20, 2016

      In my case OpenOCD didn’t worked with Clion. For embedded development I stay with Eclipse CDT for now.

    • Anastasia Kazakova says:

      July 20, 2016

      We haven’t checked it and didn’t do anything special to support it. Feel free to open a feature request

      • Roman says:

        July 21, 2016

        As soon as I you have Makefile and assembly language support.

        From the gdb standpoint: I don’t think that there should be something special: To connect to OpenOCD gdb server I just type:
        > taget remote ip_addr:port
        But I don’t know how GDB-MI works. In my case gdb console in Clion is read-only when I connect to openocd using remote-debug feature of Clion, so I can’t send any commands, like loading elf and setting breakpoints.

        • Anastasia Kazakova says:

          July 21, 2016

          Could you please add a request to our tracker with the description of your usual steps and current CLion behaviour? We’ll check what we can do.

          • Roman says:

            July 22, 2016

            Well, not much I can say:

            Also I don’t understand Linux-only limitation: for me everything just works on Windows: I can compile an elf using cross-gcc, connect to taget using gdb, load and debug.
            Unfortunately I’m experiencing issues with embedded development on Linux: most semiconductor vendors support only outdated redhat 5 and 6.

          • Roman says:

            July 22, 2016

            I’ve experimented with console gdb, here my thoughts: I think the problem is that target is running when GDB connects to it (it is bootloader that is running). This confuses Clion. In console session I usually do “monitor halt” (sometimes “monitor reset halt”) to stop target before loading firmware.

            • Anastasia Kazakova says:

              July 25, 2016

              Ok, thanks for letting us know. We’ll investigate what’s going on there.

  3. A Dev says:

    July 20, 2016

    Jetbrains = God of IDEs

  4. Jakub says:

    July 21, 2016

    Since I don’t know where else to put it, I’ll write here. In the upper right of this blog there’s a section “CLion links”. The link to issue tracker is (note the “net” instead of “com”). It works but throws nasty certificate error.

    • Jakub says:

      July 21, 2016

      Oh, just noticed – the same applies for the link in the main navigation.

      • Anastasia Kazakova says:

        July 21, 2016

        Thanks. We’ll check them out and fix.

  5. smallB says:

    July 22, 2016

    No, for fuck sake!!! When I see another IDE for C++ made in Java I’m getting sick. WTF?!? Can’t you do C++ in native C++ libraries? Seriously guys, for that reason only I will not be even considering using your IDE.

    • Jakub says:

      July 25, 2016

      Than don’t.
      Seriously, having a good platform basis already it’d be plain stupid to start everything from scratch just for the sake of writing it in C++.
      Yes, it’s a bit heavy and, as a pretty young software, still has it’s glitches but I don’t care. I used to work with QtCreator which is great and I loved it because it doesn’t get in my way. But also lacks many features CLion has. If they had to rewrite entire platform it’d take years to make it usable.

      And BTW: stepping by just to comment “You suck!” is ridiculous.

      • smallB says:

        August 1, 2016

        I didn’t step in just to say “you suck”. I specifically expressed my disappointment in yet another IDE for C++ being written in Java. And as other comments seem to agree with me, thanks to Java CLion is heavy and slow. Nothing will change that as long as it is made in Java.

        • mr_tawan says:

          August 5, 2016

          Well it’s not entirely new IDE per se. It is, like Eclipse and CDT, a toolkit built on top of Java platform called IntelliJ.

          Anyway if you actually want an IDE written in C++ or whatever … I think Visual C++ exists for ages. qtCreator is written in qt, with their twisted taste C++ code (but it’s still C++ nontheless.). And the list goes on. No one force you to try it IMO.

          • smallB says:

            August 6, 2016

            And where did I said that I’m being forced to try this IDE?
            All I said was expressing my dissaproval in yet another IDE for C++ not being written in C++, and what follows poor perfomant, as comments of others confirm that.
            One other point to your comment though. Visual C++, I believe you referring to Visual Studio? Well, it isn’t written in C++ on the contrary to what you might believe.

    • Dev says:

      July 25, 2016

      That’s a really stupid reason for not using an IDE. Judge it on its merits.

      • fritz says:

        July 26, 2016

        Well, stupid or not. The fact is, Jetbrains IDE are full of features but quite slow thanks to Java.

        I too wish they had started in C++ to begin with. C++ is a great language and produces the best results with no additional effort, when it comes to desktop software.

      • smallB says:

        August 1, 2016

        I did judge it on its merits and it’s slow and sluggish.

  6. Ivan says:

    July 26, 2016

    At one point a build system API was mentioned to allow the incorporation of new build systems into the IDE. Is there any progress on that front?
    What about support for heavily templated code like Eigen? I still see a lot of false positives from it in my code and there are several unresolved issues on your tracker.
    Finally is there any hope of making symbol update/building faster?

  7. kris says:

    July 26, 2016

    Really great software, as always from JetBrains. One query though. Is there a plugin as yet for Unreal engine 4 to use with Clion ? Thanks.

  8. Xiang says:

    July 31, 2016

    When I use cin and scanf as the standard input on the windows, the input data will return to show on the screen (so it seems like I have printf my input data. When I use printf I will get two lines of output, but one of them is my input), so how to solve this problem? Thank you very much!

    • Anastasia Kazakova says:

      August 1, 2016

      There is a problem we are aware – Looks like the same issue for you. Please, upvote and follow to get the updates and know about the progress.

  9. The Week in C++ 2016.29: July 17-23 | Utah C++  Users Group says:

    August 1, 2016

    […] CLion 2016.2 released: Remote GDB debug, Doxygen support, operators generation, and more by Anastasia Kazakova […]

  10. Glenn Robnett says:

    August 4, 2016

    I’ve been using 2016.2 heavily for about a week now.

    Had a problem with the IDE crashing, which was tracked down to the Markdown Navigator plugin. After uninstalling the plugin, things are running just fine.

    Just one feature suggestion regarding the Time Tracking plugin:

    It would really be helpful if the IDE could visually indicate when the plugin was “counting time”, without opening up the pane.

    Something simple
    Right now the Time Tracking icon is a blue clock face all the time.
    Maybe change it to a green clock face when it is actively increasing “Time Spent”?

    Keep up the good work!

Discover more