Toolbox - Firefox Developer Tools 编辑

The Toolbox provides a single home for most of the developer tools that are built into Firefox.

There are a few different ways to open the Toolbox:

  • select "Toggle Tools" from the Web Developer menu (under "Tools" on OS X and Linux, or "Firefox" on Windows)
  • click the wrench icon (), which is in the main toolbar or under the Hamburger menu (), then select "Toggle Tools"
  • activate any tool hosted in the Toolbox (for example, the JavaScript Debugger or the Page Inspector)
  • press Ctrl + Shift + I on Windows and Linux, or Cmd + Opt + I on OS X. See also keyboard shortcuts.

By default, the window appears docked to the bottom side of the Firefox window, but you can detach it if you like. This is what it looks like when it's docked:

The window itself is split into two parts: a toolbar along the top, and a main pane underneath:

Note: Since Firefox 62, you can drag and drop tabs in the main toolbar of the toolbox to reorder your tools as you wish (bug 1226272).

Docking mode

By default, the Toolbox appears docked to the bottom of the browser window, but you can also dock it to the right-hand side of the window, or make it a standalone window, using buttons in the toolbar.

Toolbar

The toolbar contains controls to activate a particular tool, to dock/float the window, and to close the window.

Node picker

On the far left there's a button to activate the node picker. This lets you select a page element for inspection. See "Selecting elements".

Toolbox-hosted tools

Then there is an array of labeled buttons which enables you to switch between the different tools hosted by the Toolbox. The array may include the following tools:

Note that not all the hosted tools are always listed here: only the tools actually available in this context are shown (for example, not all tools support remote debugging yet, so if the debugging target is not the Firefox instance that launched the window, not all the hosted tools will be shown).

Extra tools

Next there's an array of buttons that can be added or removed in the developer tool settings. By default this array includes:

The following tools are not included in the toolbar by default, but you can add them in the settings:

Toolbox controls

Finally there's a row of buttons to:

  • close the window
  • toggle the window between attached to the bottom of the browser window, and attached to the side of the browser window
  • toggle the window between standalone and attached to the browser window
  • access developer tool settings

Settings

See the separate page on the Developer Tools Settings.

Main Pane

The content of the main pane in the window is entirely controlled by, and specific to, the hosted tool currently selected.

Keyboard shortcuts

These shortcuts work whenever the toolbox is open, no matter which tool is active.

CommandWindowsmacOSLinux
Cycle through tools left to rightCtrl + ]Cmd + ]Ctrl + ]
Cycle through tools right to leftCtrl + [Cmd + [Ctrl + [
Toggle between active tool and settings.F1F1F1

Toggle toolbox between the last 2 docking modes

Ctrl + Shift + DCmd + Shift + DCtrl + Shift + D
Toggle split console (except if console is the currently selected tool)EscEscEsc

These shortcuts work in all tools that are hosted in the toolbox.

CommandWindowsmacOSLinux
Increase font sizeCtrl + +Cmd + +Ctrl + +
Decrease font sizeCtrl + -Cmd + -Ctrl + -
Reset font sizeCtrl + 0Cmd + 0Ctrl + 0

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:168 次

字数:8831

最后编辑:7 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文