Changing Firefox Developer Tools

点点圈 提交于 2020-04-30 08:23:23

问题


I am trying to make some changes to the Firefox Dev Tools. I am starting by adding console.log statements. Where should the output show up? What are the alternatives? How should I (attempt) to debug the Firefox Dev Tools? I have already successfully expanded omni.ja and rebuilt omni.ja from the expanded JavaScript. When I add (deliberately) bad code to the expanded JavaScript, the Firefox Dev Tools fail (which makes sense). However, when I add console.log statements, I can't find the output. Note that I am using (trying to use) remote debugging. However, I am not sure that is the correct approach.


回答1:


The errors are logged to the Browser Console, which can be opened by pressing Ctrl+Shift+J. The same messages can also be seen when opening the Console panel within the Browser Toolbox, which can be opened via Ctrl+Alt+Shift+I once it is enabled.

Having said that, the proper way to make changes to the Firefox DevTools is to set up a development environment for Firefox as described at https://docs.firefox-dev.tools/getting-started/.



来源:https://stackoverflow.com/questions/61267253/changing-firefox-developer-tools

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!