Can't set breakpoint in cshtml file in Visual Studio Community 2022

13 hours ago 3
ARTICLE AD BOX

As an alternative to using the Debug Menu (as in my comment), you can also customize your Right-click Menu. Tools, Customize..., then select the Commands tab. Choose the Context menu radio button. From the dropdown, select Other Context Menus | HTML Context. Then you can use the Add Command button to add Toggle breakpoint, and anything else you might want.

enter image description here

Read Entire Article