I am currently using my own cmd `print-vars` for this purpose. It would be convenient if there is such a builtin for debugging.