Skip to main content
Docusaurus

Search documentation

Type to search this documentation.

On this pageOverview

πŸ“¦ plugin-debug

mdx-code-block
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

The debug plugin will display useful debug information at http://localhost:3000/__docusaurus/debug.

It is mostly useful for plugin authors, that will be able to inspect more easily the content of the .docusaurus folder (like the creates routes), but also be able to inspect data structures that are never written to disk, like the plugin data loaded through the contentLoaded lifecycle.

npm2yarn
npm install --save @docusaurus/plugin-debug

This plugin currently has no options.

You can configure this plugin through preset options or plugin options.

mdx-code-block
<Tabs groupId="api-config-ex">
<TabItem value="preset" label="Preset options">

If you use a preset, configure this plugin through the preset options:

docusaurus.config.js
export default {  presets: [    [      '@docusaurus/preset-classic',      {        debug: true, // This will enable the plugin in production      },    ],  ],};
mdx-code-block
</TabItem>
<TabItem value="plugin" label="Plugin Options">

If you are using a standalone plugin, provide options directly to the plugin:

docusaurus.config.js
export default {  plugins: ['@docusaurus/plugin-debug'],};
mdx-code-block
</TabItem>
</Tabs>
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu