https://www.zhihu.com/question/55813520
Unfortunately, CLion doesn't currently support such feature. As suggested by JetBrains employee, you can use a workaround. In Evaluate / Watches window use the following expression:
(MyType[128])myArray
You can use arbitrary array size; whatever works for you.
If you array is stored in void * variable, you need to do something more tricky:
(MyType[128])*(char*)myArray
Note (MyType[128])myArray works for LLDB. For GDB, use (MyType[128])*myArray to have correct results.
如果你用的是gcc编译器, 就是GDB
简单来说就是在变量监视窗口那里右键指针→evaluate (类型名[你想要显示的长度])*指针名
In Clion's debugger, how do I show the entire contents of an int array
1056

被折叠的 条评论
为什么被折叠?



