diff --git a/reference/configuration/debug.rst b/reference/configuration/debug.rst index 482396d2ae2..ddbf9365046 100644 --- a/reference/configuration/debug.rst +++ b/reference/configuration/debug.rst @@ -95,8 +95,13 @@ Typically, you would set this to ``php://stderr``: .. code-block:: php // config/packages/debug.php - $container->loadFromExtension('debug', [ - 'dump_destination' => 'php://stderr', - ]); + use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; + + return static function (ContainerConfigurator $container): void { + $container->extension('debug', [ + 'dump_destination' => 'tcp://%env(VAR_DUMPER_SERVER)%', + ]); + }; + Configure it to ``"tcp://%env(VAR_DUMPER_SERVER)%"`` in order to use the :ref:`ServerDumper feature `.