开发者

Debugging Javascript with IE9, Visual Studio 2010, MVC3 and Razor syntax

开发者 https://www.devze.com 2023-03-30 22:49 出处:网络
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.

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.

Debugging Javascript with IE9, Visual Studio 2010, MVC3 and Razor syntax

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

Debugging Javascript with IE9, Visual Studio 2010, MVC3 and Razor syntax

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号