Add ability to query descendant event listeners in dev tools |
||
Issue descriptionTrying to find where event listeners are being added in the DOM is difficult because there is no descendant view. Add the ability to view the descendant event listeners from the UI and command line.
,
Jun 1 2016
Do we think that adding it in the CLI adds to the debugging ergonomics? getEventListeners it not standard or very-well known, we might want to drop it eventually.
,
Jun 1 2016
Adding it to the tree seems very confusing ux the way it is right now. So I was doing this so I could debug easier. If you want to scrap this cl then that is fine. But we need something to promote passive event listeners.
,
Jun 1 2016
I don't think we need a tree. And we already have the list there. Could we simply render all the listeners in the list?
,
Jun 1 2016
Yes, the list was what I was referring to. It is a list based on the Dom tree. But it is kind of weird with ancestors and show descendants. That is basically all event listeners in the document. How should the ux look ?
,
Jun 1 2016
As a plain list of the listeners? I guess Ancestors and Descendants options should be mutually exclusive.
,
Jun 1 2016
Right, that was my original approach to have a select list showing descendants, ancestors, target only. But that idea was rejected due to the extra time it would require to iterate the Dom. And that we didn't want users to set it to descendants and cause full tree walks.
,
Mar 22 2017
may be implemented by issue 688537
,
Oct 6 2017
I believe i fixed it a while ago. |
||
►
Sign in to add a comment |
||
Comment 1 by dtapu...@chromium.org
, May 5 2016