# How to get debug output to work?

**URL:** <https://kanboard.discourse.group/t/how-to-get-debug-output-to-work/428>\
**Category:** Questions\
**Created:** [June 10, 2019, 12:21pm UTC](https://kanboard.discourse.group/t/how-to-get-debug-output-to-work/428 "2019-06-10T12:21:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![skunkiferous](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/skunkiferous/32/126_2.png) [@skunkiferous](https://kanboard.discourse.group/u/skunkiferous)\
**Post date:** [June 10, 2019, 12:21pm UTC](https://kanboard.discourse.group/t/how-to-get-debug-output-to-work/428/1 "2019-06-10T12:21:46Z")

</div>

Hi.

I’m running the Kanboard docker image.  
I’m trying to get debug output for a plugin I am trying to write, but I get no output.  
I think I am doing this as I should, so idk what is wrong.

docker-compose.yml:

version: ‘2’  
services:  
kanboard:  
image: kanboard/kanboard:latest  
expose:  
- 80  
volumes:  
- kanboard\_data:/var/www/app/data  
- kanboard\_plugins:/var/www/app/plugins  
- kanboard\_ssl:/etc/nginx/ssl

nginx:  
image: ‘skunkiferous/staticsite:1.1’  
ports:  
- ‘80:80’  
- ‘443:443’  
depends\_on:  
- kanboard  
volumes:  
kanboard\_data:  
driver: local  
kanboard\_plugins:  
driver: local  
kanboard\_ssl:  
driver: local

So, checking the data volume:

# docker run --rm -i -v=kanboard\_kanboard\_data:/tmp/myvolume busybox cat /tmp/myvolume/config.php

define(‘DEBUG’, true);  
define(‘LOG\_DRIVER’, ‘file’); // Other drivers are: syslog, stdout, stderr, system or file  
define(‘LOG\_FILE’, ‘/var/www/app/data/debug.log’);

# docker run --rm -i -v=kanboard\_kanboard\_data:/tmp/myvolume busybox ls -l /tmp/myvolume

total 536  
-rw-r–r-- 1 100 101 152 Jun 10 11:04 config.php  
-rw-r–r-- 1 100 101 540672 Jun 10 11:45 db.sqlite

# docker run --rm -i -v=kanboard\_kanboard\_data:/tmp/myvolume busybox find /tmp/myvolume

/tmp/myvolume  
/tmp/myvolume/db.sqlite  
/tmp/myvolume/config.php

I tried refreshing, deleting tasks, moving tasks. Nothing; no debug.log. Am I looking in the wrong place?

I know Kanboard is reading the config.php, because I see it’s content at the top of every browser window.

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [June 10, 2019, 4:51pm UTC](https://kanboard.discourse.group/t/how-to-get-debug-output-to-work/428/2 "2019-06-10T16:51:48Z")

</div>

I use the docker image as well, and do nothing special, all the errors show up in my stderr logs

---

<div class="post-metadata">

**Author:** ![skunkiferous](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/skunkiferous/32/126_2.png) [@skunkiferous](https://kanboard.discourse.group/u/skunkiferous)\
**Post date:** [June 11, 2019, 5:31pm UTC](https://kanboard.discourse.group/t/how-to-get-debug-output-to-work/428/3 "2019-06-11T17:31:45Z")

</div>

So, I’ve changed config.php to only contain:

define(‘DEBUG’, true);

But, “docker logs” still shows nothing. Refreshing the page, creating an issue, deleting the issue, nothing. No output. The only thing I see, is my new config.php content at the top of every page. Docker logs from the nginx website, which proxies all requests, works just fine.

---

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [June 11, 2019, 6:47pm UTC](https://kanboard.discourse.group/t/how-to-get-debug-output-to-work/428/4 "2019-06-11T18:47:15Z")

</div>

Hmmmm, I don’t even have DEBUG ‘true’…completely remove config.php and just using defaults, I still get logs.

 ![image](https://global.discourse-cdn.com/free1/uploads/kanboard1/original/1X/85b26622031b708c60290c7f65f27a27308dca4e.png)

See. I should probably do something about that missing automatic action…

`docker logs <Container>` on host server gives me the same log info

---

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [June 11, 2019, 6:53pm UTC](https://kanboard.discourse.group/t/how-to-get-debug-output-to-work/428/5 "2019-06-11T18:53:53Z")

</div>

oh, my log driver is set to system…Think that’s default though.

 ![image](https://global.discourse-cdn.com/free1/uploads/kanboard1/original/1X/93538084417e744f009c6bb66b1ad875ff54e1f3.png)

---

<div class="post-metadata">

**Author:** ![skunkiferous](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/skunkiferous/32/126_2.png) [@skunkiferous](https://kanboard.discourse.group/u/skunkiferous)\
**Post date:** [June 12, 2019, 4:46pm UTC](https://kanboard.discourse.group/t/how-to-get-debug-output-to-work/428/6 "2019-06-12T16:46:57Z")

</div>

Aha! It seems for the config.php to work, you have to add the arcane PHP preparatory incantation on the first line: “\<?php”

Did I mention I’m a PHP noob? 😃

I think one could add a “reminder” about that in the “Docs » Administrator’s Guide » Configuration File” section…
