Tomáš Zato
Tomáš Zato

Reputation: 53149

How to remove event listeners in Firefox debugger?

Firefox has a feature in debugger that lists events for nodes - here's a help article for it.

image description

For unclear reasons, I can't find a way to remove any of those listeners. How do I do that?

Upvotes: 34

Views: 11415

Answers (3)

Martin Vysny
Martin Vysny

Reputation: 3201

The only workaround I've discovered, is to disable JavaScript altogether. You can do that in the "Debugger" tab, in the debugger settings to the right. Unfortunately that causes the page reload.

Upvotes: 3

Jan Clode
Jan Clode

Reputation: 129

It seems that right-clicking the element in the inspector, choosing "Edit as HTML" and modifying the html code (even as slighltly as adding a space after the code) makes the listener go away

Upvotes: 12

df778899
df778899

Reputation: 10931

The same feature is there from the inspector in Chrome, but as you say not in (newish) DevTools in Firefox.

Before DevTools, it was there in Firebug (screenshot), but the issue to port it across has been open for 3 years.

Upvotes: 10

Related Questions