[英]how to check the console.log output of devtools source code in chrome
Have anyone known where is the output of console.log in the InspectorBackend.js of devtools code. 有谁知道devtools代码的InspectorBackend.js中console.log的输出在哪里。 I found the console panel in the chrome have no any output. 我发现chrome中的控制台面板没有任何输出。
for example, I have set dumpInspectorProtocolMessages = true, and and also add console.error in the function _wrapCallbackAndSendMessageObject as following: 例如,我设置了dumpInspectorProtocolMessages = true,并且还在函数_wrapCallbackAndSendMessageObject中添加了console.error,如下所示:
console.error("show error on console");
if (this.dumpInspectorProtocolMessages)
console.log("frontend: " + JSON.stringify(messageObject));
I think the console panel in the chrome was loaded after above function, so where is the output, how to check it? 我认为chrome中的控制台面板是在上面的功能之后加载的,那么输出在哪里,如何检查呢?
Btw, the function above is devtools source code, and what i want to see is the log output of devtools source code. 顺便说一句,上面的函数是devtools源代码,我想看到的是devtools源代码的日志输出。
thanks 谢谢
In order to see output of console.log
's located right into DevTools own source code, you need to open DevTools on DevTools. 为了查看位于DevTools自己的源代码中的console.log
的输出,您需要在DevTools上打开DevTools。 It's pretty easy: 这很简单:
This will open a second DevTools window which will be inspecting first DevTools; 这将打开第二个DevTools窗口,它将检查第一个DevTools; all the output from the first devtools frontend could be found there. 可以在那里找到第一个devtools前端的所有输出。
在谷歌浏览器键盘上点击F12
并导航到控制台选项卡或右键单击您的页面,然后单击inspect element
您可以使用shift+ctrl+i
,它打开底部的开发人员工具并找到Console
选项卡单击以查看控制台日志
In Google chrome use F12. 在Google Chrome中使用F12。 For more check this link Opening DevTools . 有关更多信息,请查看此链接打开DevTools 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.