Kees C. Bakker
Kees C. Bakker

Reputation: 33381

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.

Upvotes: 17

Views: 22642

Answers (5)

Sir Crispalot
Sir Crispalot

Reputation: 4844

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.

Upvotes: 14

ElConrado
ElConrado

Reputation: 1638

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.

Upvotes: 0

Tine M.
Tine M.

Reputation: 444

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.

Upvotes: 2

Aneesh Mohan
Aneesh Mohan

Reputation: 1087

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.

Upvotes: 7

galvin Verghese
galvin Verghese

Reputation: 605

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

Upvotes: -3

Related Questions