How to debug a service addon (find out why it isn't auto starting) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Service Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=152) +---- Thread: How to debug a service addon (find out why it isn't auto starting) (/showthread.php?tid=107713) |
How to debug a service addon (find out why it isn't auto starting) - Wingie - 2011-08-14 The last two days i've been working on making the AIRPLAY/SHAIRPORT add-on made by ultraman work on the RC5 release of OPENELEC (Dharma 10.1 release). I've got it working by starting the python script by hand but like to have it work so that XBMC will autostart it on startup/login as supposed for a service add-on. But I haven't got a clue anymore where to look, have had a look at the /var/log/messages file and xbmc/temp/xbmc.log but nothing strange in here. Code: 20:35:48 T:139837869422720 M:1471664128 DEBUG: ADDON: cpluff: 'Plug-in service.multimedia.shair-player has been installed.' The add-on has been installed but isn't running. For reference, this is the addon.xml: Code: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> This the contents of the default.py Code: import xbmc, time, os, subprocess Is there a way to debug an ADDON to see what's going wrong during execution? If you need more info just let me know. For completeness here are my pastebins for dmesg pastebin.com/UVBPsZwX lsmod pastebin.com/1ytEhhMX full xbmc.log pastebin.com/k1mEHk6z - giftie - 2011-08-14 Wingie Wrote:The last two days i've been working on making the AIRPLAY/SHAIRPORT add-on made by ultraman work on the RC5 release of OPENELEC (Dharma 10.1 release). I've got it working by starting the python script by hand but like to have it work so that XBMC will autostart it on startup/login as supposed for a service add-on. I thought the Service type of addon is for Eden and up.. http://forum.xbmc.org/showthread.php?tid=92751 - Wingie - 2011-08-14 @giftie thank you for that info, I had already had a search in the XBMC WiKi and there it says Dharma. http://wiki.xbmc.org/index.php?title=Add-ons_for_XBMC_(Development) and service is mentioned here also so I thought it was already available, because even on the separate page about service add-ons Eden isn't mentioned http://wiki.xbmc.org/index.php?title=HOW-TO:_Automatically_start_addons_using_services Note to myself: ask questions earlier, this will help you in shorting your time useful in stead of trying to make it work for 3 hours. - giftie - 2011-08-14 Wingie Wrote:@giftie thank you for that info, I had already had a search in the XBMC WiKi and there it says Dharma. Sometimes people get a little ahead of themselves when it comes to very desired features... |