# Debug option in the panel

**URL:** <https://forum.getkirby.com/t/debug-option-in-the-panel/9148>\
**Category:** Questions\
**Tags:** v2\
**Created:** [November 30, 2017, 1:19am UTC](https://forum.getkirby.com/t/debug-option-in-the-panel/9148 "2017-11-30T01:19:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbarclay](https://avatars.discourse-cdn.com/v4/letter/b/96bed5/32.png) [@bbarclay](https://forum.getkirby.com/u/bbarclay)\
**Post date:** [November 30, 2017, 1:19am UTC](https://forum.getkirby.com/t/debug-option-in-the-panel/9148/1 "2017-11-30T01:19:40Z")

</div>

I would like to be able to turn debug on and off from the panel. We do monthly deploys and I don’t have access to the main server so I want to turn debug on and off so I can catch the errors without having to tail apache. So I want to toggle debug true and false from the panel? Any solution for this would be awesome.

Thanks.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 30, 2017, 8:18am UTC](https://forum.getkirby.com/t/debug-option-in-the-panel/9148/2 "2017-11-30T08:18:17Z")

</div>

Hm, do you really want to enable debugging on the production server? That will affect all users of the website.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 30, 2017, 11:25am UTC](https://forum.getkirby.com/t/debug-option-in-the-panel/9148/3 "2017-11-30T11:25:09Z")

</div>

This might work:

- In your site.yml, add a checkbox field `debug`.

- In your config.php, define a variable `$debugValue` and assign it to the `debug` option.

(Note that you can’t use field methods like `bool()` here, because they are not available at this time, therefore I used the string comparison).

Edit: But as I said above, if debug is set to true on the production server, users visiting the site will see all errors. Maybe then just enable debugging for logged in users or the admin?

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:30pm UTC](https://forum.getkirby.com/t/debug-option-in-the-panel/9148/4 "2025-02-06T17:30:24Z")

</div>


