Chrome Dev Tools hitting code but not breakpoints

后端 未结 4 2208
陌清茗
陌清茗 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:42

    The debugger; tip in Chrome javascript debugger breakpoints don't do anything? helped me find where my mistake was.

    I'm working on a Rails project for the first time, and there were two versions of the file without my knowing it. Rails' "asset pipeline" used a //= require foo statement to import, and the same foo file was also included somewhere else.

    The debugger; pointed me to the right place, thankfully.

提交回复
热议问题