Unable to debug with console.log in Safari on iOS 16.4 Simulator.

I'm working on a regular website, in which I'm trying to debug using the (MacOS) Safari Development tools. Since updating my Simulator to iOS 16.4, console.log is no longer displayed in the Console. Even when executing it directly in the console (console.log('test');), it's not printed.

Now, I've read that this is a feature for debugging in-app browser content (https://webkit.org/blog/13936/enabling-the-inspection-of-web-content-in-apps/) but can't find the regular web workaround here.

TL;DR: No longer see console.log in iOS 16.4 Safari when debugging from my Mac.

Thanks in advance for your suggestions!

Any update on this? I still can't see console.log statements in Web Inspector.

i have same problem

Could this be related? https://developer.apple.com/forums/thread/804340

Are you trying to do this on localhost (or some other http site, as opposed to an https site?)

If so, I'm running into the same problem (over two years later). I can use the web inspector for HTTPS sites in the simulator, and console.log works. I cannot use it for HTTP sites in the simulator; console.log doesn't print anything at all.

Definitely used to work, though. Maybe it's because I was using an older simulator for a while.

Unable to debug with console.log in Safari on iOS 16.4 Simulator.
 
 
Q