Google browser code debugging

I would like to ask you how to quickly lock the js code, for example, there is a button, click this button, quickly lock to this js,



debugger


googleF12debugger



I mean, if you click a button on a web page and lock this code, you don't know which file the code is, such as clicking on Baidu's search, and then breakpoint to the code location where you clicked.


two methods: one is to add debugger, to the code, and the other is to set a breakpoint

.
Menu