问题
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