how can i debug code using console of the browser?

i can write console.log statements, but if i try to debug the value of any javascript variable directl in the console, it doesnt recognize it.

You can use this to start you off http://help.skuid.com/m/11720/l/129014-skuid-model