intellij idea 显示Arraylist 扩容过程 解决not showing null elements

设置显示Arraylist中的null完整查看初始数组大小,扩容过程

一、
老版本:Settings -> Debugger -> Data Views -> Arrays -> Hide null array elements
新版本:Settings -> Debugger -> Data Views -> Java 取消Hide null elements in array and collections

或者设置断点,开始调试后,在idea下方的提示信息区的Variables或Watches右键选择Customize Data Views,取消Hide null elements in array and collections

二、
点击选择idea下方的提示信息区的Variables内的ArrayList变量右键View as 选择object,展开ArrayList变量,展开elementData查看全部ArrayList内容

posted @ 2020-03-17 18:44  那些年的代码  阅读(3744)  评论(0编辑  收藏  举报