开发者

How to disable script debugging in Visual Studio 2010 when running Asp.Net website project?

I'm creating a website in Visua开发者_如何学Cl Studio 2010. I would like to use Visual Studio for C# debugging, without using it as JavaScript debugger. Is there a way to disable script debugging for Asp.Net website projects? I run my projects by hitting F5 in my Visual Studio.

(I've noticed that when I attach the debugger manually, I can specify the type of stuff I would like to debug.)

Note: I would like to debug JavaScript, but not with Visual Studio 2010. The Developer Toolbar will suffice.


See this article on Connect, and the other article it links to.

To summarise, it's a workaround. Apparently VS can't attach the debugger to both Silverlight and script so if you turn on Silverlight debugging, it has to disable script debugging! To access these settings, go to Start Options which is within the web site Property Pages.


Just go to Debug->Options & Settings and select Just-In-Time and Uncheck Script from Types of Code to enable debugging.

This will disable script debugging.


I had same problem on VS2015. There you can choose on which browser you run/debug project. I think older VS opens default browser, so you should change that.

Anyway, I set project to open in chrome and then I manually opened IE and copy-paste the URL from chrome. VS doesn't debug javascript in that case.


On website project left click on project in solution explorer and go to the project properties->go to the Web tab->scroll to the bottom of this tab and on Debuggers area select ASP.NET and Silverlight checkbox. It will disable script debugging.


If u r using IE 8.0 then go to tools-Internet options-advance tab- and uncheck Disable script debugging. Its works fine here.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜