Mist
Mist

Reputation: 684

ASP.Net MVC:How to debug razor code in cshtml file

i set break point in razor code but i am not being able to debug the code.

here is the picture which clearly saying break point will not currently hit

so please tell me what option i need to turn on in VS2013 IDE.

enter image description here

Upvotes: 5

Views: 14562

Answers (2)

Husam Ebish
Husam Ebish

Reputation: 6858

Make sure you are in debug mode

enter image description here

Upvotes: 0

Hamid
Hamid

Reputation: 907

  • 1.close your cshtml file
  • 2.Rebuild your Project
  • 3.Reopen your cshtml file,now it will be ok and you can debug your c# code

Upvotes: 3

Related Questions