Starting with Firefox 69, debugging an application that includes event handlers is simplified because the debugger now includes the ability to automatically break when the code hits an event handler.
developer.mozilla.org/en-US/docs/Tools/Debugger/Set_event_listener_breakpoints