简体   繁体   中英

Attach Visual Studio 2013 (or 2015) JS debugger to browser using IIS (not Express)

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.

This MSDN article might be what you are looking for. It details the steps to attach a running IE instance to VS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM