Join us for web.dev LIVE, a digital event from June 30th to July 2nd to learn modern web techniques. More at web.dev/live

Get and debug event listeners

Get and debug event listeners

You can use getEventListeners(node) in the Console Panel to retrieve registered event listeners on the passed in DOM node. In addition to that, the video clip shows debug(fn) invoking the debugger when fn is called.