Visual Studio 2010 script debugger doesn't work for me

后端 未结 8 556
礼貌的吻别
礼貌的吻别 2020-12-14 06:23

I just installed VS 2010 Beta 2 and wanted to play with an ASP.NET MVC 2 project. I simply added some script (alert(\'hello\');) into the Home controller\'s in

8条回答
  •  余生分开走
    2020-12-14 06:43

    The debugger cannot debug both Silverlight code and Script code at the same time, if the Silverlight debugger is selected JavaScript debugging is switched off.

    1. Go to the Project's Properties (Alt+Enter).
    2. For a Web Site Project: Select "Start Options". Or for a Web Appliction: Go to the Web tab and at the bottom you will see the Debuggers option.
    3. Check that the Silverlight checkbox is NOT ticked if you want to be able to debug JavaScript. (It is unfortunate that the UI here is not clear about this side effect.)

提交回复
热议问题