2.6: Added a shorthand stackTrace() method

2.6 version of 3.0 https://github.com/cakephp/cakephp/pull/3903

Also unified debug() to return early instead of additional nesting.