Re: [jQuery] Debug Plugin
I'm not sure if this works or not. I see three grey boxes, but Firebug isn't outputting a thing. I have the correct settings on to get messages and output, but nothing, nada. John Resig wrote: Hi Everyone - I'm currently down-and-out with a nasty cold, but I took a break and hacked up a quick plugin. (I just realized that I've never actually released any plugins... oops!) Source Code: http://john.jquery.com/plugins/debug.js Quick test page: http://john.jquery.com/jquery/test/float.html Same page, but with a selector error (once you click the middle box): http://john.jquery.com/jquery/test/float2.html It prints out debugging information for all jQuery functions (e.g. $(), $().find(), $.trim(), etc.) using Firebug's console logging. It's obviously quite primitive, and the code is really bad, but it's something for now. I figure we can take this and hack it out into something good. --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/Debug-Plugin-tf2347170.html#a6542522 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Debug Plugin
Hmm... Actually it does work but requires the page to refresh before it does anything! It looks cool John! Dan Atkinson wrote: I'm not sure if this works or not. I see three grey boxes, but Firebug isn't outputting a thing. I have the correct settings on to get messages and output, but nothing, nada. John Resig wrote: Hi Everyone - I'm currently down-and-out with a nasty cold, but I took a break and hacked up a quick plugin. (I just realized that I've never actually released any plugins... oops!) Source Code: http://john.jquery.com/plugins/debug.js Quick test page: http://john.jquery.com/jquery/test/float.html Same page, but with a selector error (once you click the middle box): http://john.jquery.com/jquery/test/float2.html It prints out debugging information for all jQuery functions (e.g. $(), $().find(), $.trim(), etc.) using Firebug's console logging. It's obviously quite primitive, and the code is really bad, but it's something for now. I figure we can take this and hack it out into something good. --John ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- View this message in context: http://www.nabble.com/Debug-Plugin-tf2347170.html#a6543513 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Debug Plugin
John Resig schrieb: On 9/28/06, Marc Jansen [EMAIL PROTECTED] wrote: I can see nothing, too. even more my console on FF 1.5.0.7 says console is not defined (L. 6)... and that just after loading. nice idea, though. That means that you have to have the Firebug extension install for Firefox. You can get it here: http://getfirebug.com/ --John Hey John, I added the following lines to my JS, just in case I forget a log statement somewhere: // console.log fallback if (!window.console) window.console = {}; if (!window.console.log) window.console.log = function(s) {}; Maybe it's useful here too, just to avoid an error... -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Debug Plugin
None of the boxes are clickable for me in either of the demos! Im on FF2RC1/WinOn 9/27/06, John Resig [EMAIL PROTECTED] wrote:Hi Everyone -I'm currently down-and-out with a nasty cold, but I took a break and hacked up a quick plugin.(I just realized that I've never actuallyreleased any plugins... oops!)Source Code:http://john.jquery.com/plugins/debug.js Quick test page:http://john.jquery.com/jquery/test/float.htmlSame page, but with a selector error (once you click the middle box): http://john.jquery.com/jquery/test/float2.htmlIt prints out debugging information for all jQuery functions (e.g.$(), $().find(), $.trim(), etc.) using Firebug's console logging. It'sobviously quite primitive, and the code is really bad, but it's something for now. I figure we can take this and hack it out intosomething good.--John___jQuery mailing listdiscuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Debug Plugin
John Resig schrieb: I'm currently down-and-out with a nasty cold, but I took a break and hacked up a quick plugin. (I just realized that I've never actually released any plugins... oops!) Ah, at last! :-) Source Code: http://john.jquery.com/plugins/debug.js Quick test page: http://john.jquery.com/jquery/test/float.html Same page, but with a selector error (once you click the middle box): http://john.jquery.com/jquery/test/float2.html It prints out debugging information for all jQuery functions (e.g. $(), $().find(), $.trim(), etc.) using Firebug's console logging. It's obviously quite primitive, and the code is really bad, but it's something for now. I figure we can take this and hack it out into something good. Wow. Sick or not, you are always good for a decent surprise. That looks like it could boost jQuery development productivity quite a lot. No more adding of console.debug(this) statements everywhere while developing :-) One thing I noticed after a quick look: The default output for functions is pretty useless. When it outputs something like $.find #mid undefined, it states that the context for the search is not given, right? Seems like a vast playground with lots of space for ideas and improvements. -- Jörn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/