[CLion 2020.1] Smart pointers don't expand in debugger
已回答
Values under smart pointer don't expand in debugger's variables window.
#include <memory>
class Test {
public:
int a = 0;
};
int main() {
Test obj;
obj.a = 4;
auto objPtr = new Test;
objPtr->a = 5;
auto objSmartPtr = std::make_shared<Test>();
objSmartPtr->a = 6;
return 0;
}

Toolchain:
Visual Studio 16.0
CMake 3.16.5
Boundled LLDB 9.0
I attached log file (with #com.jetbrains.cidr.execution.debugger) via web form: idea - ptr.log
Also in settings under Debugger "Enable NatVis renderers for LLDB" is set.
请先登录再写评论。
Hello!
Thanks for reporting. I've created https://youtrack.jetbrains.com/issue/CPP-20340. Feel free to comment or upvote the issue in order to get updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.