环境:VS2008 + IE8在IE8中将“禁用脚本调试(InternetExplorer)”和“禁用脚本调试(其他)”都钩选上了,但在VS2008中调试时时还是会自动打开脚本调试功能。Google一下,有网友提到“IE8高级选项中的禁用脚本调试设置对Visual Studio一点影响都没有,因为Visual Studio 2008在调试器启动的时候会自动启用脚本调试(可以通过注册表禁用此特性)”,不知这个注册表禁用此特性在哪里??

解决方案 »

  1.   

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Current Version\AeDebug
    Debugger
      

  2.   

    开始---运行,msconfig,回车,打开系统配置实用程序。再服务选项卡中,把“script blocking service”前的对钩点掉,确定。重启电脑  试试
      

  3.   


    没找到这个服务(我是windows7).
      

  4.   

    Microsoft 脚本调试程序工具关闭实时调试的方法有两种:
    1、打开IE浏览器然后选择工具- internet选项-高级,把“禁用脚本调试(Internet Explorer)”和“禁用脚本调试(其它)”前面打上对钩,找到“显示每个脚本错误的通知”并取消其勾选。确定即可。2、开始---运行,msconfig,回车,打开系统配置实用程序。再服务选项卡中,把“script blocking service”前的对钩点掉,确定。重启电脑即可。 
      

  5.   

    http://msdn.microsoft.com/zh-cn/library/7seh8d72.aspx
      

  6.   

    终于找到了解决的方法,贴出来,有同样问题的童鞋可以参考一下
    http://www.visualstudiodev.com/visual-studio-debugger/how-to-disable-auto-script-debugging-in-vs-2008-12615.shtml//以下是解决的方法(我转贴出来,详见原网页)
    Automatically enable IE script deugging is a new feature in IE8.
    I have contacted our newsgroup members and got serveral workarounds about disabling this automatically script debugging:
    Workaround one:  
    1. Start without debugging (press Ctrl + F5)
    2. Attach Visual Studio Debugger to WebDev.WebServer.exe process
    Workaround two:  
    1. Right click the Web application and choose Properties,  
    2. Click Web tab on the left and choose "Don't open page" radio button on the left panel
    3. Start Debugging (press F5)
    4. Open IE and navigate the URL.
    Workaround three:
    1. Open the application Property page and choose Web tab
    2. Click "Start External Program" radio button and input the path to the iexplorer.exe
    3. Type the URL in the "Command line argument" option
    4. Press F5 and start debugging.