Chrome DevTools: Event Listener Breakpoints

Updated . Posted . Visible to the public.

tl;dr

In Chrome DevTools in the Sources tab you can activate Event Listener Breakpoints for debugging events.

Example

The Event Listener Breakpoints in the Chrome DevTools can be quiet useful for debugging why and where code is handling specific events.

Here you can see a very simple example that shows what lines of code handle a click:

Image

You can use this Code Pen Show archive.org snapshot if you want to try it yourself.

Limitation

You can't use Event Listener Breakpoints with framework specific breakpoints!

Julian
Last edit
Julian
License
Source code in this card is licensed under the MIT License.
Posted by Julian to makandra dev (2022-10-31 14:50)