1

I am working on Mvc 5 on VS 2012.

However, I am unable to debug views (.cshtml) files. Even the intelligence is not working in views. I am able to debug other source code except views.

can somebody advise what could be the issue?

5
  • surely you cant just becoz its html but you can if you have razor code embedded into html . Commented May 21, 2014 at 15:30
  • Thats what I meant.. I have razor in my views and I am not able to debug that. Intelligence also not enabled.. Commented May 22, 2014 at 4:05
  • well ok . if you dont mind keep @if( // you code ) keep a break point at IF and let me know is that working Commented May 22, 2014 at 4:33
  • hmmm..since the engine does not recognizes the code, we can not keep break point either.. Commented May 22, 2014 at 8:35
  • oops .! i am sure the break points works if u try to keep it at @if .. worked for me Commented May 22, 2014 at 16:01

1 Answer 1

1

I can debug MVC Views only from IE meaning I have to select Internet Explorer from VS menu to run the project. Set debug pointer in Views then it works.

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.