在Visual Studio 2013中使用Bootstrap调试响应式Web应用程序时,IE 11会引发异常 [英] IE 11 throws exceptions when debugging responsive Web app with Bootstrap in Visual Studio 2013

查看:124
本文介绍了在Visual Studio 2013中使用Bootstrap调试响应式Web应用程序时,IE 11会引发异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我调整浏览器窗口的大小并碰到响应的断点时,此(动态)方法在第3行引发异常:

When I resize the browser window and I hit a responsive breaking point, this (dynamic) method throws an exception at line 3:

window.__BROWSERTOOLS_CONSOLE_SAFEFUNC = function (fn) {
                var returnFn = function () {
                    return fn(arguments);
                };
                return returnFn;
            }

eval代码第5行第25列中未处理的异常

Unhandled exception at line 5, column 25 in eval code

0x80004005-JavaScript运行时错误:未指定的错误.

0x80004005 - JavaScript runtime error: Unspecified error.

我认为这是管理媒体查询评估更改的侦听器,但是 arguments 包含一堆我没有尝试进一步分析的方法.在继续之前,我必须先点击掉其中的几十种错误.

I think what this does is manage listeners for media query evaluation changes, but the arguments contain a bunch of methods that I did not try to analyze further. I have to click away about two dozens of these errors before I can continue.

当浏览器未连接到调试器时,它可以正常工作. 还有其他人遇到这种情况吗,我可以将其关闭吗?

When the browser is not attached to the debugger, it works fine. Is anybody else experiencing this, and can I turn it off?

推荐答案

我也遇到了这种情况,这让我发疯了...以下是重现步骤:

I was experiencing this too and it drove me nuts... Here are steps to reproduce:

  1. 加载您的页面;它很棒.尝试调整大小,效果很好.
  2. 使用开发人员工具,继续浏览您的网站,调整大小效果很好
  3. 隐藏开发人员工具..调整大小.. CRAP,错误

隐藏调试器时,有关页面的某些信息(Bootstrap的CSS或JS)非常奇怪. 幸运的是,此修复很容易,只需按CTRL + R 即可强制重新加载页面,这将清除错误

Something about the page (Bootstrap's CSS or JS) freaks out when you hide the debugger. Luckily the fix is easy, just push CTRL+R to force a hard-reload of the page, which will clear the error

我想预防措施(因此您不必按住ESC即可清除警报)是每次隐藏F12工具时都按CTRL + R

I guess the preventative step (so you don't have to hold down ESC to clear the alerts) would be to CTRL+R each time you hide the F12 tools

这篇关于在Visual Studio 2013中使用Bootstrap调试响应式Web应用程序时,IE 11会引发异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆