.debug()
your jQuery?Firebug can really help debugging jQuery! A little plugin can help even more! But, for those non-firefox browsers, no firebug... unless you use firebug lite.
Until now! I tried to mimic the display and behavior of firebug, while keeping this plugin small and with no other plugins required.
It should be compatible with firebug or firebug lite or no firebug at all.
The simplest use is to 'sprinkle' .debug()
in your chains. .debug(e)
will also show the value of e, useful for events!
I hope you make good use of this plugin. You can see the sample (this page). The latest version is at Google.
PS I haven't coded a regular alert in a long time since writing $.log
PPS tested with Firefox 2, Opera 9, Safari 2, and IE7
console.time("somename")
and console.time("somename")
!Simple Timing of script (like fireBug)
.clicklogger('logging.cgi')
!Whereever you click (inside this div), the click gets logged to some php or cgi program & the server log.
.keyup(function(e){$(this).debug(e)})