PSA for web developers: if you plug your iPhone into a Mac with a USB-C cable and turn on the iPhone setting "Safari -> Advanced -> Web Inspector" you can run the full Safari web inspector on your Mac against live pages displayed on your phone
-
PSA for web developers: if you plug your iPhone into a Mac with a USB-C cable and turn on the iPhone setting "Safari -> Advanced -> Web Inspector" you can run the full Safari web inspector on your Mac against live pages displayed on your phone
Wildly useful, not just for debugging but even for things like tweaking a page a bit in order to get a better screenshot
-
Stuart Langridgereplied to Simon Willison last edited by
@simon and if you want to do this without a Mac, you can use https://github.com/HimbeersaftLP/ios-safari-remote-debug-kit from Windows and Linux; plug in the iphone and you can inspect Safari pages in a (simplified) devtools from a Chrome(ish) browser on the desktop. It's rather more of a faff, annoyingly, but it does work. (There's also https://inspect.dev/ but IIRC you have to have an online account to use it, which I don't like for local apps.)
-
Gabriel Elisavetskyreplied to Simon Willison last edited by
@simon You can also achieve this over WiFi
-
Simon Willisonreplied to Gabriel Elisavetsky last edited by
@elisavetsky how?
-
Simon Willisonreplied to Stuart Langridge last edited by
@sil that's very cool!