236

We have a button. Click events are handled by a 3rd party framework, however, the framework is buggy somehow.

We want to debug the framework, however, we don't know where the corresponding event handler code resides to set a breakpoint. How to generally "break on next click event" and see where and how this click is handled by the 3rd party framework?

4

1 回答 1

402

您正在寻找的是选项卡上的“事件侦听器断点Sources。每当触发任何侦听所选事件的事件侦听器时,都会触发这些断点。您将在“源”选项卡中找到它们。在您的情况下,展开“鼠标”类别并选择“点击”。

DevTools 事件侦听器断点

于 2013-09-18T18:45:30.670 回答