# Debug Panel actions with Xdebug

**URL:** <https://forum.getkirby.com/t/debug-panel-actions-with-xdebug/24020>\
**Category:** Questions\
**Created:** [November 23, 2021, 9:43am UTC](https://forum.getkirby.com/t/debug-panel-actions-with-xdebug/24020 "2021-11-23T09:43:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adspectus](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/adspectus/32/189_2.png) [@Adspectus](https://forum.getkirby.com/u/Adspectus)\
**Post date:** [November 23, 2021, 9:43am UTC](https://forum.getkirby.com/t/debug-panel-actions-with-xdebug/24020/1 "2021-11-23T09:43:04Z")

</div>

I have create a hook which is executed upon saving a page (page.update:after).

When I try to debug what’s going on with Xdebug by setting breakpoints within the according function, when I save the page in question, the execution does not stop at the breakpoint.

Xdedug works well when I try the same in the frontend.

Is Xdebug supposed to work within panel functions or do I need a different setup?

---

<div class="post-metadata">

**Author:** ![moonwalk](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@moonwalk](https://forum.getkirby.com/u/moonwalk)\
**Post date:** [November 23, 2021, 10:06am UTC](https://forum.getkirby.com/t/debug-panel-actions-with-xdebug/24020/2 "2021-11-23T10:06:24Z")

</div>

Xdebug should also work for PHP scripts triggered via the Panel.
