[Debug] Debug and inspect event listeners with Devtools

发布时间 2023-06-02 21:05:17作者: Zhentiw

You can use getEventListeners(button)directly inside chrome devtool, but not inside application code.

 

You can use monitorEvents(button, 'keydown'), now every times keydown happens, event will be logged into the console.

Use unmonitorEvents(button, 'keydown')to stop.