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内容


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM