SECOND
SECOND = 1
Basic defines for timing functions.
CakePHP(tm) : Rapid Development Framework (https://cakephp.org) Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
Licensed under The MIT License For full copyright and license information, please see the LICENSE.txt Redistributions of files must retain the above copyright notice.
debug(mixed $var, boolean|null $showHtml = null, boolean $showFrom = true) : mixed
Prints out debug information about given variable and returns the variable that was passed.
Only runs if debug mode is enabled.
mixed | $var | Variable to show debug information for. |
boolean|null | $showHtml | If set to true, the method prints the debug data in a browser-friendly way. |
boolean | $showFrom | If set to true, the method prints from where the function was called. |
The same $var that was passed
stackTrace(array $options = array()) : mixed
Outputs a stack trace based on the supplied options.
depth
- The number of stack frames to return. Defaults to 999args
- Should arguments for functions be shown? If true, the arguments for each method call
will be displayed.start
- The stack frame to start generating a trace from. Defaults to 1array | $options | Format for outputting stack trace |
Formatted stack trace
dd(mixed $var, boolean|null $showHtml = null) : void
Prints out debug information about given variable and dies.
Only runs if debug mode is enabled. It will otherwise just continue code execution and ignore this function.
mixed | $var | Variable to show debug information for. |
boolean|null | $showHtml | If set to true, the method prints the debug data in a browser-friendly way. |
Loading…