π¦ plugin-debug
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.
Installation
Section titled βInstallationβnpm install --save @docusaurus/plugin-debugConfiguration
Section titled βConfigurationβThis plugin currently has no options.
Example configuration
Section titled βExample configurationβYou can configure this plugin through preset options or plugin options.
<Tabs groupId="api-config-ex">
<TabItem value="preset" label="Preset options">If you use a preset, configure this plugin through the preset options:
export default { presets: [ [ '@docusaurus/preset-classic', { debug: true, // This will enable the plugin in production }, ], ],};</TabItem>
<TabItem value="plugin" label="Plugin Options">If you are using a standalone plugin, provide options directly to the plugin:
export default { plugins: ['@docusaurus/plugin-debug'],};</TabItem>
</Tabs>