Coolest Guides on the Planet

coolest guides on the planet

Coolest Guides On The Planet

  • Home
  • macOS
  • WebDev
  • All Posts
  • Contact

Viewing the Source Code on iPhone and iPads using Safari Webkit Development Tools

June 16, 2013 1 Comment

To view the html or css source code on iOS devices like the iPhone and iPad there is another quicker method than using Adobe Edge Inspector – and that is to use Safari’s webkit web inspector. This will work on devices with iOS6 plus and a modern Safari version. You can also use the iOS simulator instead of an actual physical device.

Set up the iOS Device

webkit-ios-source-code-on

  • Connect iOS device to Mac via USB
  • Go to Settings > Safari > Advanced > Web Inspector = On
  • Launch a web page in mobile Safari

Set Up Safari

inspect-iphone-webkit-safari

  • Enable ‘Developer’ tools – Safari >Preferences > Advanced > Show Develop menu in Menubar
  • Go to the Develop Menu and select your iPhone and inspectable page

Using WebKit Tools

web-inspector-mobile-device

Once you choose the page to inspect, up come the tools and making selections will also highlight the code on the actual device ready to be manipulated.

highlighted-area-of-inspection

Using the iOS Simulator

You can also do the same things with the iOS simulator

ios-simulator-on

  • Install Xcode
  • Launch iOS Simulator – Xcode > Open Developer Tool > IOS Simulator
  • In the simulator, go Settings > Safari >Advanced > Web Inspector > On
  • Launch a page in mobile Safari
  • Inspect on desktop Safari

ios-simulator-inspect-web-page

With iOS Simulator you can also swap devices and inspect in those too…

ipad-ios-simulator

 

ipad-ios-simulator-webkit

ipad simulator

 

Cats: ios, macOS, Tech, WebDev

Tags

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls

Donate a Beer to the Coolest Guides

Get Beaver Builder Now!

Discuss

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls
Get DesktopServer

Lynda

Lynda.com Online Training Videos

TreeHouse

smlinks

Learn WordPress
osx-modify-shell-path

How to Add to the Shell Path in macOS Big Sur and Catalina using Terminal

October 19, 2019

virtual-hosts osx 10.10 yosemite

Set up Virtual Hosts on macOS Catalina 10.15 in Apache

October 19, 2019

Installing Homebrew on macOS Catalina 10.15, Package Manager for Linux Apps

October 18, 2019

Where is the bash shell in macos Catalina?

October 12, 2019

Refine your search

  • All
  • Modules
  • Themes
  • Documentation
  • Forums & Issues
  • Groups

RSS ars technica

  • Apple releases new beta builds of all its flashy new Liquid Glass-ified OS updates
  • Mocked Trump Mobile yanks coverage map that ignored Trump renaming Gulf of Mexico
  • Apple’s Craig Federighi on the long road to the iPad’s Mac-like multitasking
  • New Apple study challenges whether AI models truly “reason” through problems
  • Apple details the end of Intel Mac support and a phaseout for Rosetta 2

RSS mac surfer

Donate

Copyright © 2025· Neil Gee - All Rights Reserved - Hosted by Runcloud

Copyright © 2025 · gee on Genesis Framework · WordPress · Log in