Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Hộp Dụng Cụ

This translation is incomplete. Please help translate this article from English.

The Toolbox provides a single home for most of the developer tools that are built into Firefox. You can open it by selecting "Toggle Tools" from the Web Developer menu (under "Tools" on OS X and Linux, or "Firefox" on Windows), or by activating any tool hosted in it (for example, the JavaScript Debugger or the Page Inspector). Alternatively you can 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:

     

      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:

      • Web Console
      • JavaScript Debugger
      • Page Inspector
      • Style Editor
      • Profiler
        • 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

          Clicking the "Settings" button () gives you access to settings for the Toolbox itself and for the tools it hosts:

          Depicts the Toolbox options

          Default Firefox Developer Tools

          This group of checkboxes determines which tools are enabled in the toolbox. New tools are often included in Firefox but not enabled by default.

          Available Toolbox Buttons

          This group of checkboxes determines which "standalone tools" get buttons in the toolbar. This defaults to the node picker, the split console, and responsive design mode.

          Firefox 32 adds a button to take a screenshot of the complete web page, which is unchecked by default.

          Choose DevTools theme

          This enables you to switch between a light and a dark theme:

          Common preferences

          Settings that apply to more than one tool. There's just one of these:

          • Enable persistent logs: a setting to control whether or not the Web Console and Network Monitor clear their output when you navigate to a new page.

          Inspector

          • Show browser styles: a setting to control whether styles applied by the browser (user-agent styles) should be displayed in the Inspector's Rules view. This setting is new in Firefox 32. Note that this setting is independent of the "Browser styles" checkbox in the Inspector's Computed view.
          • Default color unit: a setting to control how colors are represented in the inspector:
            • Hex
            • HSL(A)
            • RGB(A)
            • name.

          Web Console

          • Enable timestamps: controls whether the Web Console displays timestamps. From Firefox 28 the Web Console defaults to hiding timestamps.

          Style Editor

          JavaScript Profiler

          • Show Gecko platform data: a setting to control whether or not profiles should include Gecko platform symbols.

          Editor Preferences

          Preferences for the CodeMirror source editor, which is included in Firefox and used by several developer tools, including Scratchpad and the Style Editor.

          • Detect indentation: auto-indent new lines based on the current indentation
          • Autoclose brackets
          • Indent using spaces
          • Tab size
          • Keybindings: choose the default CodeMirror keybindings, or keybindings from one of several popular editors:
            • Vim
            • Emacs
            • Sublime Text

          Advanced settings

          • Disable cache: disable the browser cache to simulate first-load performance. From Firefox 33 onwards this setting persists, meaning that if it is set, caching will be disabled whenever you reopen the devtools. Caching is re-enabled when the devtools are closed.
          • Disable JavaScript: reload the current tab with JavaScript disabled
          • Enable Service Workers over HTTP: enable Service Worker registrations from insecure websites
          • Enable chrome and add-on debugging (in Firefox 38.0.5b3 and below) or Enable browser chrome and add-on debugging toolboxes (in 40.0a2 and above): enable you to use developer tools in the context of the browser itself, and not only web content
          • Enable remote debugging: enable the developer tools to debug remote Firefox instances

          Main Pane

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

Document Tags and Contributors

 Contributors to this page: nnhv1981
 Last updated by: nnhv1981,