views:

2305

answers:

3

Is there a way to debug javascript using Safari 3.2 in Windows Vista?

I found a link to a debugger named Drosera but I can't get it to work because the information seams to be outdated.

+4  A: 

Well, apart from the Error Console that can be opened from the Develop menu (which in turn can be enabled in (Prefences / Advanced / Show Develop menu in menu bar) there aren't many javascript debugging options in Safari AFAIK.

Still, the error console is quite useful as it shows javascript errors and also lets you to execute arbitrary Javascript statements.

Since you are on Windows anyway, you could try using the inbuilt Javascript debugger of Google Chrome, which is a browser very similar to Safari (although the Javascript engine is different).

DrJokepu
+1  A: 

It is possible to make Drosera go -- IIRC you need to enable the developer menu (through preferences) and set a flag in the safari preferences file.

That said, Drosera was slow (due to the architecture) and perpetually buggy. If you download the nightlies from http://nightly.webkit.org you'll get the updated inspector with an integrated debugger. One that does not (hopefully) suck :D

[Edit: and if you do find any bugs in the debugger (ah, irony :D ) it'd be great if you could file them at http://bugs.webkit.org]

olliej
Seconded. Drosera is gone from the nightlies; use the integrated debugger.
James Baker
+1  A: 

Have you tried Firebug Lite? http://getfirebug.com/lite.html

Athena