2010-03-24, 23:29
Hi guys,
I was wondering if there is a Python debugger for XBMC.
Most of the time I am OK without, but it would be a huge plus to have a way to run python scripts and plugin in debugger. Logs give you a lot of info but unfortunately sometimes it is not enough.
So first of all I would like to know if someone found a way to set a python debugger used with XBMC (in this case thank for telling us how you did)?
In the past we had the XBMC emulator but I don't think it is up to date and probably it is not enough in case of complex script with a GUI.
I know one of the method is to separate code in module and test module which does not import xbmc or xbmcgui outside XBMC. But again when a bug occurs it is usually with the all system which means debugging ...
Let me share few ideas with you guys (please let me know what do you think about it):
- eclipse provide pydev and pydev extension, the fisrt one provide syntax highlighting and the last one has a remote debugger listening on a specific port which is used for instance in django application development, so I am pretty sure we can have something similar with XBMC (similar to Alex poet persistence listening on a port too).
- The complexity here (I think) is to be able to run the script/plugin in XBMC from eclipse. So ideally from command line, but I am not aware of the possibility to start a script/plugin in XBMC from the command line.
Any ideas, suggestion?
In all the cases with the increasing popularity of XBMC and the number of developers doing an amazing work on addons for XBMC in python, it would be a hug step to have such tool or a way to have more evolve debug tool.
Thanks in advance.
I was wondering if there is a Python debugger for XBMC.
Most of the time I am OK without, but it would be a huge plus to have a way to run python scripts and plugin in debugger. Logs give you a lot of info but unfortunately sometimes it is not enough.
So first of all I would like to know if someone found a way to set a python debugger used with XBMC (in this case thank for telling us how you did)?
In the past we had the XBMC emulator but I don't think it is up to date and probably it is not enough in case of complex script with a GUI.
I know one of the method is to separate code in module and test module which does not import xbmc or xbmcgui outside XBMC. But again when a bug occurs it is usually with the all system which means debugging ...
Let me share few ideas with you guys (please let me know what do you think about it):
- eclipse provide pydev and pydev extension, the fisrt one provide syntax highlighting and the last one has a remote debugger listening on a specific port which is used for instance in django application development, so I am pretty sure we can have something similar with XBMC (similar to Alex poet persistence listening on a port too).
- The complexity here (I think) is to be able to run the script/plugin in XBMC from eclipse. So ideally from command line, but I am not aware of the possibility to start a script/plugin in XBMC from the command line.
Any ideas, suggestion?
In all the cases with the increasing popularity of XBMC and the number of developers doing an amazing work on addons for XBMC in python, it would be a hug step to have such tool or a way to have more evolve debug tool.
Thanks in advance.