Debugging Javascript with IE9, Visual Studio 2010, MVC3 and Razor syntax
I'm trying to get javascript debugging working with IE9 and VS2010.
I've enabled debugging in IE9.
I've made sure that Silverlight debugging is disabled in the project settings.
And placed a breakpoint in my (Razor syntax MVC3) code.
And nothing happens when I run it :/
This has been happe开发者_运维知识库ning for a few months now and over many projects, so it's not just that the breakpoint is never reached or something silly and code based.
I've tried:
Uninstalling and resinstalling IE9.
Making sure I have the latest MVC tools so the Razor editor is up to date.
Making the bare minimal amount of code required.
Following all the 'guides' I could find (which are all just variations on what I did above).
Doing the same thing on colleagues machines, and it works.
Manually setting a breakpoint with 'debugger;'. This causes the 'pick your debugger' windows to appear, and in that list I have new or existing VS instances except for the one running the site i.e. the one that would do the job.
IE is my default browser.
when you run the application in dot net with IE as a default browser
you can see the solution explorer add up something at last as shown in the black box
that have the file name being loaded in explorer eg "localhost" here
just double click on the file you will see the html code as well as the JavaScript there
now over here you can put the breakpoints and it will work for sure
精彩评论