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.
-
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.AJ X.– AJ X.2017-11-06 17:14:13 +00:00Commented Nov 6, 2017 at 17:14
-
You may refer to previous post of stackoverflow.com/questions/18782069/…Ben Cheng– Ben Cheng2017-11-06 17:44:57 +00:00Commented 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.rr14– rr142017-11-14 11:45:40 +00:00Commented Nov 14, 2017 at 11:45
Add a comment
|