Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 221
Kees C. Bakker Avatar asked Apr 01 '11 10:04

Kees C. Bakker


People also ask

How do I disable debugging in Visual Studio 2010?

Select Stop debugging from Debug menu to end a debugging session. You also can stop debugging from the processes window. In that window, right-click the executing process and select the Detach Process or Terminate Process command.

How do I disable script debugging?

On the Internet Explorer Tools menu, choose Internet Options. In the Internet Options dialog box, click the Advanced tab. On the Advanced tab, look in the Settings box, Browsing category. Clear Disable Script Debugging (Internet Explorer).


2 Answers

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.

like image 67
Sir Crispalot Avatar answered Sep 19 '22 16:09

Sir Crispalot


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.

like image 24
Aneesh Mohan Avatar answered Sep 19 '22 16:09

Aneesh Mohan