Login Register

Debugging Facilities

A great toolkit like Dojo deserves great tools alongside it. If you're used to chasing down problems with alert() and trial-and-error, it's time to give your development environment an upgrade!

Dojo itself has facilities for easing debugging tasks: an isDebug flag for better tracking down internals and console.debug() statements for logging. We'll cover these in the next sections, plus give you some hints on general JavaScript debugging.