Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot Send Console Commands To iOS Device From Safari Web Inspector

The Sarari Web Inspector Guide says:

Use the console as a tool to modify your web content via interactive commands

It then goes on to list some example commands including console.log(object).

However, when I try any command at all and hit enter, nothing happens.

Screenshot

What am I missing? Why can't I send my console commands via the enter key?

like image 399
Joncom Avatar asked Aug 07 '15 05:08

Joncom


People also ask

How do I open the console in Safari iOS?

Apple Safari To do that, go into Safari's preferences (Safari Menu > Preferences) and select the Advanced Tab. Once that menu is enabled, you will find the developer console by clicking on Develop > Show Javascript Console. You can also use the shortcut Option + ⌘ + C .


1 Answers

TLDR: Install Safari Technology Preview https://developer.apple.com/safari/download/

My console stopped working after upgrading to:

macOS: Big Sur 11.4 (20F71) Safari: 14.1.1 (16611.2.7.1.4) iPhone iOS: 14.5

Spent a few hours trying to fix this, resetting, rebooting, reinstalling, etc. until I found this comment suggesting to try Safari Technology Preview. My regular Safari still doesn't work, but Safari Technology Preview (Release 125 (Safari 14.2, WebKit 16612.1.15.1.12)) works like a charm.

Safari web inspector is only showing Sources, Console and Audit

Safari Technology Preview installs in parallel to the regular Safari, you can use it just for development. Find it here https://developer.apple.com/safari/download/

like image 196
Mikael Lirbank Avatar answered Sep 28 '22 17:09

Mikael Lirbank