# Deprecations do not display in Debug\_kit when using ajax or using redirects

**URL:** <https://discourse.cakephp.org/t/deprecations-do-not-display-in-debug-kit-when-using-ajax-or-using-redirects/7621>\
**Category:** Need Help\
**Created:** [April 7, 2020, 9:53pm UTC](https://discourse.cakephp.org/t/deprecations-do-not-display-in-debug-kit-when-using-ajax-or-using-redirects/7621 "2020-04-07T21:53:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertkendrick](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@robertkendrick](https://discourse.cakephp.org/u/robertkendrick)\
**Post date:** [April 7, 2020, 9:53pm UTC](https://discourse.cakephp.org/t/deprecations-do-not-display-in-debug-kit-when-using-ajax-or-using-redirects/7621/1 "2020-04-07T21:53:25Z")

</div>

Just seeking some clarification around what i’m observing with cakePHP 3.8. (Not a complaint!)  
Under the normal cakephp workflow (Controller-\>Model-\>View) you can use the debug\_kit toolbar to display any deprecations in your code. However, if your controller has an ajax method or you redirect to another page or do anything other than ‘normal’ these deprecations no longer show up and the deprecations count in the toolbar displays as zero. Is this is by design ?

---

<div class="post-metadata">

**Author:** ![dreamingmind](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/dreamingmind/32/1857_2.png) [@dreamingmind](https://discourse.cakephp.org/u/dreamingmind)\
**Post date:** [April 8, 2020, 12:47am UTC](https://discourse.cakephp.org/t/deprecations-do-not-display-in-debug-kit-when-using-ajax-or-using-redirects/7621/2 "2020-04-08T00:47:35Z")

</div>

Does the DebugKit History tab show the intermediate calls? If so, you an click on them to roll the debug data back to that historical point and possibly see you deprecations.

---

<div class="post-metadata">

**Author:** ![robertkendrick](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@robertkendrick](https://discourse.cakephp.org/u/robertkendrick)\
**Post date:** [April 8, 2020, 7:54pm UTC](https://discourse.cakephp.org/t/deprecations-do-not-display-in-debug-kit-when-using-ajax-or-using-redirects/7621/3 "2020-04-08T19:54:13Z")

</div>

Thank you very much dreamingmind ! - what a fantastic tip about debug\_kit. I tried the history and deprecations panels and they worked perfectly. I’m somewhat humbled.  
I hope others pick up on this and see what a great tool debug\_kit is.

---

<div class="post-metadata">

**Author:** ![dreamingmind](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/dreamingmind/32/1857_2.png) [@dreamingmind](https://discourse.cakephp.org/u/dreamingmind)\
**Post date:** [April 8, 2020, 9:16pm UTC](https://discourse.cakephp.org/t/deprecations-do-not-display-in-debug-kit-when-using-ajax-or-using-redirects/7621/4 "2020-04-08T21:16:10Z")

</div>

I stumbled on it a week ago. There are some videos in the debug kit docs. I was amazed as you are!

[https://book.cakephp.org/debugkit/4/en/index.html](https://book.cakephp.org/debugkit/4/en/index.html)
