Reputation: 11412
Attaching Visual Studio debugger to IIS to debug C# code in an ASP.NET application is simple.
However I would like to debug the JavaScript in Visual Studio too. If I run the website under IIS Express with Internet Explorer, the browser link is set up automatically and I can put breakpoints in the JS code inside Visual Studio, and debug it just like server side code.
I couldn't make it work if I run the website it under IIS. The browser link seemed to be there: when I selected "reload linked browsers" it reloaded the page in IE. I set breakpoints, but instead of the "solid red disc" breakpoints they had a smaller white dot inside, and they didn't get hit.
What am I doing wrong? Is there a tutorial for it? All tutorials I could find were related to attaching the debugger to debug server side code, but not the browser link part.
Upvotes: 0
Views: 483
Reputation: 807
This MSDN article might be what you are looking for. It details the steps to attach a running IE instance to VS.
Upvotes: 1