Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions en/development/debugging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down