Visual Studio Javascript BreakPoint not getting hit, why?

前端 未结 5 1273
终归单人心
终归单人心 2021-02-15 13:05

Possible to set a breakpoint for the code block of javascript like the screenshot below. How can we use them? VS always ignores.

5条回答
  •  無奈伤痛
    2021-02-15 13:51

    There are seemingly infinite possibilities to why this happens. I just solved this problem after hours of searching.

    My particular issue is that my breakpoints were disabled immediately after my coworker enabled bundling (see description here). I had to go into our BundleConfig.cs file and comment out the line that said:

    BundleTable.EnableOptimizations = true;
    

    After I did that, they were hit. You'd want to add that line back in for deployments.

提交回复
热议问题