Break on a DOM event

This feature isn't yet supported in the new debugger.

To see the docs for the old debugger, please visit Debugger (before Firefox 52).

If you're listening to a particular DOM event, you can tell the debugger to break when the event is triggered without having to track down the listener and set a breakpoint manually.

First, open the events pane by clicking the button in the toolbar that opens the shared variables/events pane. Then click the tab labeled "Events". The events pane will list all events for which you have assigned a listener:

Then check the box next to the event you want to break at.

When the event is triggered the code will break at the start of your listener.

Document Tags and Contributors

Contributors to this page: xergon, mdnwebdocs-bot, wbamberg
Last updated by: xergon,