I’ve mentioned before that I do a ton of JavaScript and AJAX development. I’ve also mentioned that debugging JS code is simple in Firefox (using Firebug), and a bit of a pain-in-the-ass when viewing in IE.
As I near the completion of a software iteration, I have begun testing across all other browsers. Apple’s Safari (at least on Windows) is by far the worst browser when it comes to debugging JS code.
Why do I say that? Isn’t Apple supposed to be way ahead of Microsoft in just about everything???
For starters… I do like that Safari has a ‘Developer’ section built-in to the browser. That’s awesome! …except that it lacks something really important — a decent JavaScript debugger!
To further illustrate my point, the Apple developer docs are just as bad: they expect you to insert JS code into your own code so that your errors show up in their console debugger. You mean I have to add code just so your software works? No! The folks at Firebug figured that problem out… why couldn’t Apple?
It gets worse… even after adding the
window.console.log();
code to my own script, the Safari console log isn’t even helpful! It gives me an undefined error in a file… but I have 2000 lines of code! Can you be more specific???
I officially hate Safari. I never really used it before, but now I loathe the browser. I wouldn’t even bother to test in it if my client didn’t primarily use Mac products…
Has anyone found a great JS debugger for Safari?