Prints out debug information about given variable and returns the variable that was passed.
Only runs if debug mode is enabled.
debug( mixed $var boolean|null $showHtml null boolean $showFrom true )
| || ||Variable to show debug information for.|
| || ||If set to true, the method prints the debug data in a browser-friendly way.|
| || ||If set to true, the method prints from where the function was called.|
mixedThe same $var that was passed
© 2005–2018 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.