Chrome DevTools出错 [英] Error in Chrome DevTools

查看:711
本文介绍了Chrome DevTools出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近开始在Chrome开发工具中看到一个频繁的错误,右键单击一个元素用于选择Inspect Element - 而不是选择元素选项卡上的元素错误Uncaught错误:需要参数2(消息)。出现在虚拟extensions :: schemaUtils脚本的Sources选项卡中。



发生在函数validate中,如下面的截图所示。





这个错误似乎是在安装OneTab扩展程序后发生的,当我禁用它时,它确实会消失。我已经向扩展作者报告了,至今没有回应。不幸的是,由于工作已经适合给我发送一台动力不足的机器,因此除去OneTab不是一种选择,否则内存会以非常短的时间运行。



这个问题很容易复制,在堆栈溢出本身中,单击左上角的StackExchange图标,然后右键单击其中一个您的社区项目。上下文菜单不会打开并出现上述错误。这也会影响我正在使用的主要产品上的弹出式菜单。



这个错误仅发生在Chrome的单个实例中,这恰好是我的主要开发人员机器,并且在同一台计算机上的Chrome Canary上发生,并安装了相同的扩展程序。 Windows 7专业版,Service Pack 1,x64笔记本电脑。



我的Chrome版本是否损坏?其他用户是否可以复制此错误(使用或不使用OneTab扩展)?有没有什么办法可以永久删除扩展名,我可以做到恢复必要的检查元素功能?

我已经尝试在设置菜单中重置Chrome。

p>

解决方案

您遇到的问题是触发了(未捕获)错误的断点。



要阻止这种情况发生,请打开开发人员工具的Sources选项卡,并确保其中包含两个条纹的圆圈为灰色,而不是蓝色。这个圆圈的意思是暂停例外,并且是下一张图片中最右侧的图标。


I have recently started to see a frequent error in Chrome Dev Tools when right clicking on an element for the purposes of selecting "Inspect Element" - instead of selecting the element on the "Elements" tab the error "Uncaught Error: Parameter 2 (message) is required." appears in the "Sources" tab for a virtual "extensions:: schemaUtils" script.

The error occurs in the function "validate" as per the screenshot below.

This error seems to occur since installing the "OneTab" extension, and indeed goes away when I disable it. I have reported it to the extension author, so far without response. Unfortunately as work have seen fit to issue me with an underpowered machine, removing OneTab is not an option as memory otherwise runs in extremely short supply.

The issue is easy to replicate, within Stack Overflow itself click on the "StackExchange" icon top left, and then right click on one of the "Your Communities" items. The context menu does not open and the above error appears. This also affects the pop-out menus on the primary product I am working on.

This error only occurs in a single instance of Chrome, which happens to be my primary developer machine, and does not occur on Chrome Canary on the same computer, and with the same extension installed.

Chrome 37.0.2024.2m on a Windows 7 Professional, Service Pack 1, x64 laptop.

Do I have a corrupted copy of Chrome? Can other users replicate this error (with or without the OneTab extension)? Is there anything short of removing the extension permanently that I can do to restore essential "Inspect Element" functionality?

I have already tried resetting Chrome within the settings menu.

解决方案

The problem you're experiencing is that a breakpoint is triggered for (uncaught) errors.

To stop this from happening, open the Sources tab of the developer tools, and make sure that the circle with the two stripes in it is GREY, not blue. This circle means "Pause on exception" and is the right-most icon in the next picture.

这篇关于Chrome DevTools出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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