Google chrome extension 在控制台中键入'chrome.devtools'会导致chrome浏览器发生硬崩溃

Google chrome extension 在控制台中键入'chrome.devtools'会导致chrome浏览器发生硬崩溃,google-chrome-extension,Google Chrome Extension,我在dev tools inspector中创建了一个空的chrome扩展来浏览chromeDOM对象,但是每次我在控制台中提交命令chrome.devtools时,我都会遇到chrome的严重崩溃。有人知道我该怎么做吗?似乎我可以访问chrome对象中的其他参数。当我尝试将chrome.devtools添加到手表时,它将被添加,但当我扩展对象时,chrome崩溃 manifest.json { "manifest_version": 2, "name": "Test Ext

我在dev tools inspector中创建了一个空的chrome扩展来浏览
chrome
DOM对象,但是每次我在控制台中提交命令
chrome.devtools
时,我都会遇到chrome的严重崩溃。有人知道我该怎么做吗?似乎我可以访问
chrome
对象中的其他参数。当我尝试将
chrome.devtools
添加到手表时,它将被添加,但当我扩展对象时,chrome崩溃

manifest.json

{
    "manifest_version": 2,

    "name": "Test Extension",
    "description": "",
    "version": "0.1",

    "devtools_page": "devtools.html",

    "browser_action": {
        "default_icon": "icon.png",
        "default_popup": "popup.html"
    }
}
popup.html

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
    <style>
        body { min-width: 200px; min-height: 120px; }
    </style>
    <script type="text/javascript" src="popup.js"></script>
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
    <script src="devtools.js"></script>
</head>
<body>
</body>
</html>


主体{最小宽度:200px;最小高度:120px;}
devtools.html

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
    <style>
        body { min-width: 200px; min-height: 120px; }
    </style>
    <script type="text/javascript" src="popup.js"></script>
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
    <script src="devtools.js"></script>
</head>
<body>
</body>
</html>


.js
两个文件都是空的。

由于访问
Chrome.devtools而导致Chrome崩溃是一个已知的错误:

我想你不是故意要破坏Chrome,而是想通过控制台检查
Chrome.devtools
API。如果这确实是您的目标,请打开devtools页面,如中所述