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

来源:互联网 发布:centos配置net snmp 编辑:程序博客网 时间:2024/05/29 03:04

设置显示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内容

原创粉丝点击