IntelliJ IDEA Debugger does not show null element in a list

DebuggingIntellij Idea

Debugging Problem Overview


I have a list in which the first element is null. IntelliJ debugger correctly shows the list size as 5, but it shows only 1,2,3,4 elements. It would be nice to see that element with the index 0 is null (it took me some time to figure out my problems while debugging because it did not show that). Is it possible to force IntelliJ to show this?

Here is a screenshot, where the size is 5 and the elements shown are only 1-4 because the first element is null:

enter image description here

Debugging Solutions


Solution 1 - Debugging

Null array elements are hidden by default, you can disable it here:

hide null

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionjgrView Question on Stackoverflow
Solution 1 - DebuggingCrazyCoderView Answer on Stackoverflow