Copied from someone’s email:
This link has great info, tips, tools to debug Dojo and JavaScript, etc.
http://dojo.jot.com/DebuggingJavascript
I believe some of you asked how to do step-thru debugging of individual JS files that use the Dojo toolkit. You have to set “djConfig.debugAtAllCosts=true” and make sure the page has the “dojo.hostenv.writeIncludes();” statement added in a script element. (I believe it has to be in the head section.)