twipping the rift

“I like nonsense, it wakes up the brain cells. Fantasy is a necessary ingredient in living, it’s a way of looking at life through the wrong end of a telescope. Which is what I do, and that enables you to laugh at life’s realities.” - Dr. Seuss

Javascript Debugger for Safari

Really for “webkit’ but it’s called Dosera. Here’s how to run it…. Run the following in the command line:

defaults write com.apple.Safari IncludeDebugMenu 1

defaults write com.apple.Safari WebKitScriptDebuggerEnabled -bool true

Restart Safari Download a nightly build of webkit and run Dosera:

http://trac.webkit.org/projects/webkit/wiki/Nightly%20Builds

It should attach to Safari no problemo.. .You’ll see the scripts available from which to debug.. It SUCKS in comparison to VS.NET and Firebug.. but it is something at least. There is also a console that you execute arbitrary javascript in the current context… Seems to be the only way to interrogate an object at the moment is to put something like this in the console: for (var variable in myvariableInContext) alert(variable);

See this for more information:

http://developer.apple.com/internet/safari/faq.html

Colophon

A technologist, runner, photographer, iPhone junkie.

Syndicate

Activity

No comments, leave your comment or trackback.

Leave a Reply


Search

The archives run deep. Feel free to search older content using topic keywords.

Browse by Category