X = rows, Y = columns. The debug view is correct but it's reversed on the array file if you're using that.
You are correct that the debug view reverses the array.
But why do you think it's right?
This is the first time I've come across the fact that there are some recommendations in the code, and others in the debug view (there is an internal feeling that different teams developed the code :) ).
There are no hard and fast rules:
X=rows, Y=columns OR X=columns, Y=rows
the main thing is that it should be the same in the entire software.