Um, Safari has a full Javascript debugger built in:
http://developer.apple.com/internet/safari/faq.html#anchor14 (among other google results)
http://developer.apple.com/internet/safari/faq.html#anchor14 (among other google results)
But, then again, there apparently were several Google results.