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

22,128

Solution 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.

Solution 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.

Solution 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.

Share:
22,128

Related videos on Youtube

Kees C. Bakker
Author by

Kees C. Bakker

Senior Software Developer and Team Manager for Capital ID - a leading international supplier specialized in automating and managing marketing processes (MRM, MOM), using its software platform ID Manager. Specialties: C# / ASP.Net Html / CSS jQuery / JavaScript (T)SQL Visit my blog: KeesTalksTech.com Follow me: twitter.com/KeesTalksTech LinkedIn: linkedin.com/in/keescbakker

Updated on July 09, 2022

Comments

  • Kees C. Bakker
    Kees C. Bakker almost 2 years

    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.

    • Sir Crispalot
      Sir Crispalot about 13 years
      The most ridiculous thing is that the bug has been closed on Connect with the reason "By Design"!
    • Cᴏʀʏ
      Cᴏʀʏ about 13 years
  • Kees C. Bakker
    Kees C. Bakker about 13 years
    I would like to debug, but not with Visual Studio. The developer toolbar is enough.
  • Kees C. Bakker
    Kees C. Bakker about 13 years
    Wahahahha... amazing! I had to install the SilverLight runtime SDK (silverlight.net/getstarted) but it works fine!! Wahahaha... this this the funiest answer ever!
  • Sir Crispalot
    Sir Crispalot about 8 years
    Updated with archive link.

Related