Hi,
A new CLion 2018.2 EAP (build 182.3208.14) is now available! A patch-update will be available shortly in case you are using the previous EAP build. You can also update via Toolbox app or snap packages (in case of Ubuntu). No license is required and the build is free to use, but it will expire within 30 days of the build date.
Debugger: LLDB
We’ve bundled LLDB 6.0 on Linux and macOS. Besides, for LLDB case we’ve fixed an issue when certain commands in the LLDB console were breaking the IDE’s integration (CPP-11379).
C++ support
Intention that simplifies the code was improved and now produces more accurate code in case of pointers:
Other fixes include:
- Incorrect warning “Variable might not have been initialized” was fixed for typedef array case (CPP-12444).
- DFA didn’t handle overloaded operators like = and += in try section (CPP-11843).
- Incorrect warning about “Unreachable code” in some cases (CPP-11838).
Full release notes are available by the link.
Your CLion Team
JetBrains
The Drive to Develop
The full release notes are kind of missing all CPP-* bugs.
There is a link in the beginning, right before the table on that page, to CPP-* issues. Unfortunately, due to some technical issues there were not present in the table. So we’d just added a direct link.
Can I use LLDB on Windows through WSL?
No, you can’t now.
It is great to see that debugging fixes regularly make their way into releases. Debugging experience is a crucial part of any IDE. Good work!
I want to draw your attention to two extremely annoying debugger bugs CPP-12472 and CPP-7276. Pretty-printing of variables does not work if a variable is a reference or a pointer. In a typical scenario you pass a std::vector parameter to a function as a const reference and… you can not see the contents of a parameter when debugging. Both LLDB and GDB seem to be affected. In my opinion it is currently the most noticeable debugger issue.
Thanks for drawing attention to these issues! I’m happy to inform you that CPP-7276 is fixed in the latest RC: https://blog.jetbrains.com/clion/2018/07/clion-2018-2-release-candidate/
Is compilation with CLang and debugging with LLDB on Windows on the roadmap?
Or debugging with CDB (Windows’ equivalent to GDB, a CLI debugger available through the Windows SDK)?
Right now this is stopping me from evaluating properly as we build for Linux and Windows…
Clang is available on all the platforms. For Windows you have to install it via MinGW/MinGW-w64 or Cygwin.
LLDB on Windows might be available later this year.
Regarding the MSVC-compliant debugger (as the Microsoft debugger a proprietary one), we are currently working on some equivalent debugger, but I can’t promise you anything here. We are currently investigating the options.
Afaik, default LLVM/Clang packages for Windows are based on MSVC, not MinGW or Cygwin – are there plans to support such Clang and LLDB?
Yes, we have plans to support such packages in future: https://youtrack.jetbrains.com/issue/CPP-10711