How to add breakpoint to a javascript file using a chrome extension

后端 未结 1 1214
情歌与酒
情歌与酒 2021-01-07 12:17

I am trying to add a break-point to the source JavaScript file using a chrome Extension. But it says the

chrome.browserAction.onClicked.addListener(function         


        
相关标签:
1条回答
  • 2021-01-07 12:50

    The documentation says the parameter name is location, not Location.

    In javascript Capitalized identifiers denote classes commonly, while the variables/parameters use lower camelCase.

    P.S. to see what actually happens it's very useful to "sniff" the debugger protocol while doing the action manually in devtools.

    0 讨论(0)
提交回复
热议问题