Function debug
Prints out debug information about given variable and returns the variable that was passed.
Only runs if debug mode is enabled.
Link:
https://book.cakephp.org/3.0/en/development/debugging.html#basic-debugging
Link: https://book.cakephp.org/3.0/en/core-libraries/global-constants-and-functions.html#debug
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Located at basics.php
Link: https://book.cakephp.org/3.0/en/core-libraries/global-constants-and-functions.html#debug
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Located at basics.php
debug( mixed $var boolean|null $showHtml null boolean $showFrom true )
Parameters summary
mixed |
$var |
Variable to show debug information for. |
boolean|null |
$showHtml = null |
If set to true, the method prints the debug data in a browser-friendly way. |
boolean |
$showFrom = true |
If set to true, the method prints from where the function was called. |
Returns
-
mixed
The same $var that was passed