diff --git a/en/development/debugging.rst b/en/development/debugging.rst index c96699cd9a..a0397a0f6a 100644 --- a/en/development/debugging.rst +++ b/en/development/debugging.rst @@ -24,6 +24,15 @@ default. Output from this function is only shown if the core ``$debug`` variable has been set to ``true``. +.. versionadded:: 3.3.0 + + Calling this method will return passed ``$var``, so that you can, for instance, + place it in return statements, for example:: + + return debug($data); // will return $data in any case. + +Also see ``pr()`` and ``pj()``. + .. php:function:: stackTrace() The ``stackTrace()`` function is available globally, and allows you to output