Asteron Wrote:redsolo - I use eclipse too and it is a good ide. Really though the xbmc.py and xbmcgui.py emulator scripts are terribly out-of-date and I dont think they could render things like the XBMC threading model and control behavior accurately enough. There is really no replacement for the actual environment you get in XBMC_PC which rules out the pydev debugger.
Yes, those are out of date, but Ive updated them (in some parts) so they work with the API changes. But I dont agree with you that they can be ruled out completly, as Ive developed scripts using those emulator script. Yes, the display is hideous, but that isnt important when developing (as long as it is control logic that is developed.). Of course, when making GUI changes (moving controls,labels,etc) it can not be used; but then I can use the PC emulator for that so I dont have to sit in front of the TV.
The control behvaiour worked out fine for me, but then I only use it to handle buttons, lists, keys and context menus.
What problems are there with the XBMC threading model that is specific for XBMC?
Could there be something Ive missed, which would produce bugs in my scripts?
Asteron Wrote:This makes the pydev environment kinda overkill (it also annoyed me that it cant be installed if the eclipse path has spaces in it... wtf? ).
I wouldnt say it is overkill if you want to use an IDE; with Eclipse you get SVN/CVS support, code completion, pylint and pyunit support, Mylar (great eclipse plugin), free, etc. The bug when installing must have been fixed, as I just installed it to
"c:\program files\eclipse\"
Anyhow, the original question was if it was possible to debug the XBMC scripts. Yes, if you use an IDE as Eclipse (and pydev), not otherwise. Logging works, but it is not really debugging.