-
Notifications
You must be signed in to change notification settings - Fork 86
Debug MIRAI in CLion #107
Comments
The CLion debugger does indeed work now and I use it all of the time. Rust support in Clion has improved with leaps and bounds in the last few months and I could not be happier about it. I'll update the MIRAI documentation to reflect this. When it comes to debugging, my single greatest frustration is not being able to view non primitive values. Without that feature I consider any debugger to be close to useless. Beyond that, expression evaluation and conditional breakpoints are the most valuable features for me. And beyond that, if you can match or exceed the gold standard in debuggers, namely the Visual Studio C# debugger, you'll be leading the big league. :-) |
Is this still relevant for now? CLion support formatting some composite values: |
Some is certainly better than none, so thanks for adding that support. Unfortunately, unless the debugger provides me with a way to look at the fields of an arbitrary structure (or enum) it will never be a real solution. Right now, even if it will just display what |
@hermanventer Structures are already supported (if I understand you correctly): But enums formatting was broken at least since 1.32.0 due to this (and I don't know why). |
Magic! I can debug now. Free at last. Well, no quite yet. Without support for enums, I can still do practically nothing without resorting to inserting debug! calls. |
@hermanventer JFYI since CLion 2020.1 Rust enums are properly rendered while debugging with lldb |
Thanks for the update. I've tried out debugging with the EAP Clion and while I do now see information about enums, I sadly see the wrong information. It seems that the enums I'm looking at are always displayed as if their values were 0, even when that is clearly not the case. |
@hermanventer Could you please provide more details (exact enum and code you debug)? Enum debugging works fine on my macOS + CLion 2020.1 EAP + 0.2.116 Rust plugin. Thanks in advance! UPD: I've found the problem related to C-style enums. I've added this case in our meta-issue, so we'll try to fix it. However, feel free to tell us about any other problems related to enum debugging! |
Debugging is much better now. |
Hi everyone! I've just heard about MIRAI. The project is very exciting and I hope it will eventually become a part of IntelliJ Rust and RLS code analysis! However, while reading the documentation I was surprised to see that CLion doesn't support debugging MIRAI ([1] and [2]).
I've just tried it out and seems like it works fine:
All I have to do is to provide the
DYLD_LIBRARY_PATH
as specified:Also [3],
I'm sorry to hear that. I'm working on new lldb formatters for Rust; in CLion, they are enabled by default and configurable via
Preferences | Build, Execution, Deployment | Debugger | Data Views | Rust
. I hope debugging support gets better, though there is noEvaluate expression
for Rust yet. So I really want to know if something related to debugging frontend doesn't work properly or if you have some ideas to improve it (at frontend level, like formatters, watches, remote debugging and so on). If so, you can open an issue here.The text was updated successfully, but these errors were encountered: