Way to view check value of site variables

This is a combination of a question and a feature request.

Related: #4176

When debugging issues on my theme, there are many times where knowing the value of a certain variable (eg. {{ .Permalink }}) would be helpful. On my own, I typically insert it into a layout and see how its resolved. This isn’t nice in this case, but doesn’t work at all when trying to debug what’s going wrong with someone’s theme from afar. Is there a better way?

There is not way outside of the tempates, and that is not going to change.

We may, however, add some improved way of “pretty dump variables”, but it would still be from the templates.

Something like this? :slight_smile:

Probably more like this:


Combined with highlighting that should be a step in the right directoion.