Display the value of variables

How can I see the value of the variables for a particular item? I know that some time ago when I was developing my home page modules, I was able to see the value of each variable, because I used that to set up some controls using if statements.

Now I want to make some modifications and I cannot for the life of me remember how I did it. I’m sure there was some kind of “switch” but cannot recall the details.

Can anyone help? Thanks.

Got it, thanks to @flaviocopes answering someone else in chat. It’s dump () and the debug bar.