Related Post

1 Comment Received

July 19th, 2007 @11:01 am  

just sharing something i ran into the other day: i was working on some js, and when i went to test in safari, it kept crashing the browser, buy I could see from looking at my db that the ajax calls were firing.

It turns out that Safari’s Javascript Console catchs the console.log calls you’d use in firebug.

Which is nice. However, in firebug, i will pass in anything to console.log to inspect it.

Safari on the other hand was choking on passing in an event, or an object to the console.log, and that was causing the crashes.

So first tip to debugging a problem in safari: comment out all calls to console.log, or keep them very simple. Not sure what happens with firebug lite installsed if safari’s console will keep catching it as well.

Leave A Reply

Please Note: Comments maybe under moderation after you submit your comments so there is no need to resubmit your comment again