How to set a breakpoint on clicking a 3rd party button?
问题 I'm trying to debug a 3rd party widget (+1 button to be exact). Specifically, I'd like to set a breakpoint in Chrome that stops when a button in the widget is clicked. I would like to break on the 3rd party code that handles to click event. Is there a Chrome extension (or something else I haven't thought of) to help me find the right place in the code to break on? 回答1: You can make use of Chrome's Developer Tools; no extension is required. I made a +1 button example here: http://jsfiddle.net