Chrome Dev Tools hitting code but not breakpoints

后端 未结 4 2278
陌清茗
陌清茗 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条回答
  •  萌比男神i
    2021-02-12 22:39

    I had a similar problem not hitting my breakpoints. Turned out it was because it was a deployed version of the site but the dev tools still had my local dev folder mapped to the workspace, the meant I had the local script files open not the ones on the server. The solution was to close the opened local scripts, opening the right files in the navigator and then setting the breakpoints.

    OK I was a bit dumb not realising it in the first place, but this might serve as a good note for anyone else having the same problem as me.

提交回复
热议问题