Search code examples
visual-studio-2010debuggingvisual-studio-2012visual-studio-debuggingdebug-symbols

VS2010 and VS2012 “Script Documents” section never appears, and I can't debug JavaScript


Tools:

Windows 7, Visual Studio 2010 and 2012, IE 9, ASP.NET 4.0, MVC4

Until a couple of days ago I had been able to debug by using the Script Documents section in the Solution Explorer. Now, the Scripts Documents section does not appear when Start Debugging (F5).

I do have IE set as the default browser.

Using "debugger;" has no effect.

Configuration is set to "Active (Debug)."

Silverlight debugging is off.

I have 'repaired' the Visual Studio 2010 inatallation.

I have no idea how to correct this frustrating situation. What have I done to displease the VS gods?

Thanks for any advice!

Arnold


Solution

  • For anyone who might be facing the same issue I think I have it figured out. I have spent days and nights tearing my hair out on this, along with my usual duties. It's unfortunate that I couldn't get "real" work done because I was chasing tool strangeness.

    I had the following line in_Layout.cshtml:

    enter image description here

    When I removed that line, Script Documents reappeared.

    I'm going to mark this as 'resolved,' however, if anyone else can proffer a reason for the behavior of the software, I would like to understand.

    Thanks,

    Arnold