Debugger statement not working

102 views
Skip to first unread message

Kimtek

unread,
Mar 25, 2011, 10:47:30 AM3/25/11
to Firebug
I'm working in a complex application built w/ javascript and dojo
widgets. I'm a novice and trying to learn. I'm unable to turn on
"djconfig debug:true". I add the debugger statement in an
xxx.javascript file that was invoked upon dojo.parse. The debugger
statement does not cause a stop. If I do this in IE8, the debugger
stops. IE doesn't seem to have the nice DOM and JS object displays
that Firebug has. Any ideas on how to get it to stop? Thanks.

Mike Ratcliffe

unread,
Mar 27, 2011, 8:07:01 AM3/27/11
to Firebug
In some circumstances the debugger just doesn't kick in. There are
still some steps that you can take though. The first thing that I
would do is add an alert statement to check that the JS code is indeed
running in Firefox as expected ... you would be surprised how often
code is not running due to some quirk somewhere else. If the code is
running and the debugger statement is not triggering the debugger you
will have to just log your variable to the console. This can be very
useful because you can dump JS objects in the way that Firebug does.
The syntax is simply console.dir(somevar).
Reply all
Reply to author
Forward
0 new messages