IDEA在debug时,显示完整数组 设置如下: 1.找到 File -> Setting -> Build, Execution, Deployment -> Debugger -> Data Views -> Java 然后关闭: Hide null elements in arrays and collectios 把这个选项关掉 Enable alternatice view for Collections classes 这个选项也可以关掉