How to set a breakpoint on clicking a 3rd party button?

▼魔方 西西 提交于 2019-11-30 12:41:41

You can make use of Chrome's Developer Tools; no extension is required.

I made a +1 button example here: http://jsfiddle.net/rPnAe/.

If you go to that fiddle and then open Developer Tools (F12), then go to Scripts and expand Event Listener Breakpoints and lastly expand 'Mouse' and tick the 'click' checkbox, then whenever you click somewhere (which includes an event listener), the debugger will now break at the line of code which contains the listener function.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!