You are here

public static function Kint::trace in Devel 8

Same name and namespace in other branches
  1. 8.2 kint/kint/Kint.class.php \Kint::trace()

* Prints a debug backtrace, same as Kint::dump(1) * *

Parameters

array $trace [OPTIONAL] you can pass your own trace, otherwise, `debug_backtrace` will be called: * * @return mixed

1 call to Kint::trace()
User::ensure in kint/kint/examples/overview.php
* Dummy method that triggers trace

File

kint/kint/Kint.class.php, line 112

Class

Kint

Code

public static function trace($trace = null) {
  if (!self::enabled()) {
    return '';
  }
  return self::dump(isset($trace) ? $trace : debug_backtrace(true));
}