Chrome Dev Tools hitting code but not breakpoints

后端 未结 4 2279
陌清茗
陌清茗 2021-02-12 22:18

I have breakpoints enabled on chrome dev tools and I have a breakpoint on a line. I know chrome is hitting the line because I put the breakpoint on a line that has the following

4条回答
  •  半阙折子戏
    2021-02-12 22:47

    You should enable the setting to stop on any exception, in the Sources tab on the developer page (F12 in chrome). (Unload your other extensions to help focus only on the problem one, and remove their thumbnails on the left panel too).

    There may be an exception thrown earlier than any debug breakpoint you have set. E.g. there if there is a missing extension permission requirement in the manifest file, which causes an exception to be thrown once it tries to use the resource but can't.

提交回复
热议问题