Friday, 15 June 2018

A tool to help identify the cause of a bug: monitorEvents in chrome


monitorEvents()

The monitorEvents() method instructs the DevTools to log information on the specified targets.
The first parameter is the object to monitor. All events return if the second parameter is not provided. To specify the events to listen to, pass either a string or an array of strings as the second parameter.

To listen to click events on the body of the page, enter the following in the console:
monitorEvents(document.body, "click");


No comments:

Post a Comment