0

How do I Debug AngularJS code written in .cshtml file, I'm using Visual Studio Express for Web 2015. I tried using "debugger;" in my code but it did not work and I cannot my Javascript code to a separate .js file.

3
  • The answer to this question really depends on what you mean by "writing code in a cshtml file." You might even want to re-evaluate your tech stack if you're writing razor side by side with angular. Commented Nov 6, 2017 at 17:14
  • You may refer to previous post of stackoverflow.com/questions/18782069/… Commented Nov 6, 2017 at 17:44
  • I don't know why using "debugger" in my cshtml file did not work at first hand, but when I restarted my Visual studio it worked fine. Commented Nov 14, 2017 at 11:45

0

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.