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

I’m creating a website in Visual 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.

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

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.

Method 2

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.

Method 3

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.

Method 4

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.

Method 5

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


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x