Why can't I set a breakpoint in a ASP.NET view?

前端 未结 4 620
渐次进展
渐次进展 2021-01-19 02:24

If I set a breakpoint in the compiled code (for instance in an action), I can then step through, and eventually am stepping through the generation of the View.

I\'v

4条回答
  •  南笙
    南笙 (楼主)
    2021-01-19 03:14

    Right click on the code you want to break on and go to "Breakpoint -> Insert Breakpoint".

    Why? Must have something to do with the face your not working with a pure code file and hitting the left sidebar doesn't know which block of code to use.

提交回复
热议问题