Chrome DevTools: Event Listener Breakpoints

Posted Over 1 year ago. 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
Over 1 year ago
Julian
License
Source code in this card is licensed under the MIT License.
Posted by Julian to makandra dev (2022-10-31 14:50)