如何在不双击的情况下显示完整数组?

How can I show full array without double clicking?

当我调试并试图查看大型数组时,CLion 仅显示前 50 个元素。我需要双击才能看到其余的。有没有办法将此数量增加到默认情况下约 1000 个元素?

在我们想出一些更方便的解决方案之前,有一个注册表值可以控制默认显示的子项数量作为解决方法。

打开注册表(Ctrl+Shift+A -> 注册表... ) 并将 cidr.debugger.value.maxChildren 设置为所需的值。

来自相关blog post:

While inspecting arrays during debug, you might notice there was a limit of 50 elements shown by default. To see more user had to explicitly expand the next 50 elements. This was done to reduce performance issues. However, sometimes a few elements with big indexes are needed, and it’s quite tiresome to click expand several times in a row.

In order to provide a solution to the problem, we’ve added a registry value to control the default number of composite value’s children.