# Debugging python daemon

**URL:** <https://forum.universal-robots.com/t/debugging-python-daemon/4610>\
**Category:** URCap Development\
**Tags:** daemon\
**Created:** [June 27, 2019, 1:58pm UTC](https://forum.universal-robots.com/t/debugging-python-daemon/4610 "2019-06-27T13:58:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon24970860](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@anon24970860](https://forum.universal-robots.com/u/anon24970860)\
**Post date:** [June 27, 2019, 1:58pm UTC](https://forum.universal-robots.com/t/debugging-python-daemon/4610/1 "2019-06-27T13:58:34Z")

</div>

Hi together,  
I want to use an daemon in my UrCap.  
So I think I implemented the daemonService and started the daemon without an error.

If I start the python script manually on the Laptop it works fine.

But the output of my python script isn’t displayed in the terminal.  
Is there an possibility to check if my daemon is working?  
Is there a possibility to debug the daemon, while the PolyScope is working?

Thanks for your help,

Casimir

---

<div class="post-metadata">

**Author:** ![anon30633082](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@anon30633082](https://forum.universal-robots.com/u/anon30633082)\
**Post date:** [July 9, 2019, 4:14pm UTC](https://forum.universal-robots.com/t/debugging-python-daemon/4610/2 "2019-07-09T16:14:24Z")

</div>

You can write to a file to check if your daemon is running.

For example adding this to your python daemon:

> f = open(“/home/ur/test.txt”, “w”)  
> f.write(“Is my daemon running”)  
> f.close()

should create and write into a file:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/4/44c2e5ba841281b5e0e22d7801f6afefb25698d2.png)

---

<div class="post-metadata">

**Author:** ![Savoia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/savoia/32/4844_2.png) [@Savoia](https://forum.universal-robots.com/u/Savoia)\
**Post date:** [January 27, 2021, 2:00am UTC](https://forum.universal-robots.com/t/debugging-python-daemon/4610/3 "2021-01-27T02:00:04Z")

</div>

Closed on January 27, 2021, 2:00am UTC


