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

Volker Weber on Fritz!Fon C4, C5 und C6 :: Stuff that works at 23:17
Ragnar Schierholz on Fritz!Fon C4, C5 und C6 :: Stuff that works at 23:08
Jan Fuellemann on ANC Schalter für Beats Studio 3 in iOS 13 at 17:10
Volker Weber on Recording video on iPhone with Buetooth headset at 00:01
Gregory Engels on Recording video on iPhone with Buetooth headset at 22:41
Martin Hiegl on Cryptodamages: Monetary value estimates of the air pollution and human health impacts of cryptocurrency mining at 17:45
Markus Dierker on Recording video on iPhone with Buetooth headset at 08:25
Volker Weber on Cryptodamages: Monetary value estimates of the air pollution and human health impacts of cryptocurrency mining at 22:48
Maximilian von Hulewicz on Cryptodamages: Monetary value estimates of the air pollution and human health impacts of cryptocurrency mining at 08:09
Andreas Weinreich on Withings ECG :: Erste Eindrücke at 21:30
Andy Mell on Very fast October update for Galaxy S10 at 18:56
Volker Weber on Withings ECG :: Erste Eindrücke at 16:53
Bernd Fellerhoff on Withings ECG :: Erste Eindrücke at 15:23
Stanislaus Landeis on iCloud Drive file sharing delayed until spring 2020 at 12:55
Volker Weber on AirPlay 2 richtig verwenden at 11:52
Matthias Welling on AirPlay 2 richtig verwenden at 09:30
Volker Weber on AirPlay 2 richtig verwenden at 23:10
Steve Smillie on Very fast October update for Galaxy S10 at 21:58
Ragnar Schierholz on AirPlay 2 richtig verwenden at 21:34
Ragnar Schierholz on Withings ECG :: Erste Eindrücke at 18:05
Peter Meuser on Endlich habe ich Samsung DeX kapiert at 17:00
Torsten Pinkert on Very fast October update for Galaxy S10 at 16:45
Christian Tillmanns on Cryptodamages: Monetary value estimates of the air pollution and human health impacts of cryptocurrency mining at 16:17
Armin Auth on Lenovo Chromebook C340-11 #stuffthatworks at 11:49
Maximilian von Hulewicz on Cryptodamages: Monetary value estimates of the air pollution and human health impacts of cryptocurrency mining at 10:06

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 06:33

visitors.gif

buy me coffee

Paypal vowe