Kodi Community Forum
Linux Testing/Debugging Video Plugin - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Linux Testing/Debugging Video Plugin (/showthread.php?tid=172305)



Testing/Debugging Video Plugin - v.srikanth961 - 2013-08-29

Hi,
I'm new to the XBMC community. I've installed XBMC on a Linux (Ubuntu 13.04) machine and started working on a video plugin.

I've taken a working plugin and trying to modify it as per my needs. But I'm totally unsure how to test/debug the code. Right now I'm trying to open the addon in XBMC but it says 'script error'. When I try to execute the script outside of XBMC using the python command it couldn't find the necessary modules.

Can someone please point me to a good reference or is there a quick way to test the plugins outside of XBMC?

thanks and regards,
Srikanth


RE: Testing/Debugging Video Plugin - Karnagious - 2013-08-29

Check out XBMCswift.

Also, switch on debugging in the Settings and the script error will show up in the XBMC.log


RE: Testing/Debugging Video Plugin - v.srikanth961 - 2013-08-29

Thanks for the response. I found XBMCSwift2 following your post.

http://www.xbmcswift.com/en/latest/

This is exactly the kind of environment I've been looking for. Smile

(2013-08-29, 09:31)Karnagious Wrote: Check out XBMCswift.

Also, switch on debugging in the Settings and the script error will show up in the XBMC.log



RE: Testing/Debugging Video Plugin - sphere - 2013-08-29

Yes, xbmcswift (2) is a very nice plugin framework.

If you want to see some more (complex) plugins written with xbmcswift, have a look to some of add-ons on my GitHub page.

Easy to understand is e.g. "HD-Trailers.net" (plugin.video.hdtrailers_net). Or have a look to "JamBMC" for a very complex example.

Good luck with your add-on!


RE: Testing/Debugging Video Plugin - v.srikanth961 - 2013-08-29

Thanks sphere! My pleasure knowing you. Will go through the plugins to understand the best practices.

(2013-08-29, 15:07)sphere Wrote: Yes, xbmcswift (2) is a very nice plugin framework.

If you want to see some more (complex) plugins written with xbmcswift, have a look to some of add-ons on my GitHub page.

Easy to understand is e.g. "HD-Trailers.net" (plugin.video.hdtrailers_net). Or have a look to "JamBMC" for a very complex example.

Good luck with your add-on!