Is there a way to debug AngularJS code in Visual Studio?
Note: I'm not talking about VS Code.
I would like to be able to set breakpoints and see what's happening there.
I'm aware of other IDE-s which allow us to do that.
So is it possible to use Visual Studio IDE for that?
- 1why cant you use chrome wed developer tool– SajeetharanCommentedJun 25, 2017 at 13:50
- of course it's possible; what happens when you try? what are you asking for help with, exactly?– ClaiesCommentedJun 25, 2017 at 13:57
- When I run the app, Visual Studio disables the breakpoint by telling that that part is not loaded. (I was using firefox)– Just ShadowCommentedJun 25, 2017 at 18:41
Add a comment |
2 Answers
put break point in visual studio(Angularjs code) and run your application in IE so that break point will hit into visual studio
- So it turned out I had to use IE instead of Firefox. Thanks.CommentedJun 25, 2017 at 18:42
- 1most certainly related: blogs.msdn.microsoft.com/webdev/2016/11/21/…– ClaiesCommentedJun 26, 2017 at 1:27
- In 2021 this works with Visual Studio 2019 and Microsoft Edge.– NevilleCommentedJul 20, 2021 at 14:33
Nowadays we can use Edge as well instead of IE. That is a better solution since it's chromium based and has less issues compared to IE.