简体   繁体   English

在IE控制台中禁用Javascript调试

[英]Disable Javascript Debugging in IE Console

I am working on a site which has been around for the best part of ten years, and has been at the hands of multiple developers. 我正在一个网站上工作了十年之久,并且一直在多个开发人员的手中。 As such, it has some expected 'quirks'. 因此,它具有一些预期的“怪癖”。

The issues I have, is that I want to test for previous versions of IE, but when I use the Emulator in the console (IE11), the moment I select a previous version (let's say IE9) it automatically runs the JavaScript Debugger and pauses the script. 我遇到的问题是,我想测试IE的早期版本,但是当我在控制台(IE11)中使用模拟器时,当我选择早期版本(例如IE9)时,它会自动运行JavaScript调试器并暂停剧本。

This is making it very difficult for me to go through the site and test for any cosmetic and functional issues. 这使我很难遍历该网站并测试任何外观和功能问题。 The thing is, I have never had this happen before, so I don't understand it! 事实是,我以前从未发生过这种情况,所以我不理解! (I'm no JavaScript ninja). (我不是JavaScript忍者)。

I just want to disable this debugging. 我只想禁用此调试。

Edit: 编辑:

It seems to be this code in jQuery throwing the error. 看来是jQuery中的这段代码引发了错误。

return val === undefined ?
    support.attributes || !documentIsHTML ?
        elem.getAttribute( name ) :
        (val = elem.getAttributeNode(name)) && val.specified ?
            val.value :
            null :
    val;

Thanks 谢谢

In the F12 Debugger tab, select "Never break on exceptions" like this ... 在“ F12调试器”选项卡中,选择“永不中断异常”,如下所示:

在此处输入图片说明

That should do it. 那应该做。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM