Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Safari Browser (iPhone Simulator): How to see/monitor all events being triggered?

I'm using the iPhone Simulator in Safari OSX to debug my JavaScript. I'm using the Console, however, as there is a number of event handlers on the page (plus I'd like to see if the browser also fires any additional events, e.g. :hover on touch) it would very useful to see ANY/ALL events being fired in real-time. I found an article about how to do it in Firefox/FireBug.. anything like this for Safari/iPhone Simulator?

like image 912
pete Avatar asked Nov 10 '22 16:11

pete


1 Answers

monitorEvents also works in Safari (iOS 11).

https://developers.google.com/web/updates/2015/05/quickly-monitor-events-from-the-console-panel

enter image description here

like image 63
Bruno Henrique Avatar answered Nov 15 '22 12:11

Bruno Henrique