How to enable the Safari Web Inspector

by Volker Weber

safariwebinspector

This is a neat tool I stumbled across today at TUAW. Close Safari, open Terminal and type:

defaults write com.apple.Safari WebKitDeveloperExtras -bool true

Now you can got to Develop/Show Web Inspector which will show you all files used on the current web page.

Comments

If you need this, you'll find *many* improvements in the nightly development version (http://nightly.webkit.org). The inspector is available in Chrome, too, since it's a part of Webkit. Doesn't need to be enables there, though.

David Richardson, 2008-12-15

David, would you mind sharing how the WebInspector is launched in Chrome?

Ragnar Schierholz, 2008-12-15

You can invoke the WebInspector by clicking on any element on the website and selecting "element information" from the context menu. The element is highlighted in the source and the rendered view.

There is also the notable network timeline showing how load times of dependant resources accumulate.

Timo Stamm, 2008-12-15

Thanks Timo, I should have found that by myself... duh.

However, I don't see the content of the resources. If I try to replicate vowe's example by going to Ed's blog, I only see the statistics and time line and so on, but I don't get to see the content of the JS or CSS, for example. Images are being displayed on the right pane though.

Am I missing something? Or could it be because I'm behind a proxy? (I don't see why that should matter, but who knows)

Ragnar Schierholz, 2008-12-16

@Ragnar: The release version of Safari uses a *very* old version of WebKit, Chrome uses an *old* version of Webkit. The Safari version of the inspector is obsolete, the Chrome version is moving towards the new one, but is incomplete. The current WebKit nightly releases have had the complete next-generation inspector for several months. Recommended.

Firebug provides much the same functionality for Firefox, but it certainly doesn't look as nice as Safari. I use both almost every day.

There's no reason not to use the Safari nightly releases - they're extremely stable and light-years beyond the release version.

David Richardson, 2008-12-17

Follow the TUAW link once again and note the update. ;-)

Olav Brinkmann, 2008-12-17

Recent comments

John Keys on Office 365 im Tagesangebot at 10:20
Jens Wagner on Surface Pro X :: Das Gerät macht mir große Freude at 16:52
Hubert Stettner on Office 365 im Tagesangebot at 16:26
Volker Weber on Surface Pro X :: Das Gerät macht mir große Freude at 15:35
Jens Wagner on Surface Pro X :: Das Gerät macht mir große Freude at 15:26
Christoph Spitz on Office 365 im Tagesangebot at 13:38
Yves Menge on Office 365 im Tagesangebot at 12:44
Volker Weber on Marshall Monitor II A.N.C. :: Erste Eindrücke at 08:13
Maikel Maes on Marshall Monitor II A.N.C. :: Erste Eindrücke at 07:58
Jochen Kattoll on The Neighbor’s Window :: Oscar Winning Short Film at 22:21
Harald Gärttner on Microsoft Office app on Android and iOS at 15:09
Volker Weber on App-Store-Interna: Apple geht gegen Buchveröffentlichung vor at 14:55
Oliver Stör on App-Store-Interna: Apple geht gegen Buchveröffentlichung vor at 13:42
Volker Weber on Microsoft Office app on Android and iOS at 13:02
Harald Gärttner on Microsoft Office app on Android and iOS at 12:56
Volker Weber on Marshall Monitor II A.N.C. :: Erste Eindrücke at 08:07
Thomas Cloer on Marshall Monitor II A.N.C. :: Erste Eindrücke at 07:57
Matthias Lorz on The Neighbor’s Window :: Oscar Winning Short Film at 12:47
Volker Weber on The Neighbor’s Window :: Oscar Winning Short Film at 11:54
Fabio Peruzzi on The Neighbor’s Window :: Oscar Winning Short Film at 11:48
Fabio Peruzzi on The Neighbor’s Window :: Oscar Winning Short Film at 11:45
Horia Stanescu on The Neighbor’s Window :: Oscar Winning Short Film at 07:04
Martin Funk on The Neighbor’s Window :: Oscar Winning Short Film at 00:00
Sven Bühler on I am not ready for a foldable phone at 22:03
Andreas Imnitzer on The Neighbor’s Window :: Oscar Winning Short Film at 21:48

Ceci n'est pas un blog

I explain difficult concepts in simple ways. For free, and for money. Clue procurement and bullshit detection.

vowe

Contact
Publications
Stuff that works
Amazon Wish List
Frequently Asked Questions

rss feed  twitter  amazon

Local time is 10:34

visitors.gif

Paypal vowe