Kodi Community Forum

Full Version: Possible to see output of print?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to see the output of the print command when running scripts from XBMC (i.e. console output)? I want to get used to the plugin API and want to print the output from various functions.

Using Windows 7
Print statements just appear in your xbmc.log file.
Thanks!
If you're just doing this for some internal debugging, print is probably fine. But if you're going to release the addon, you should really look at the xvmc.log function.

http://mirrors.xbmc.org/docs/python-docs....html#-log

It allows you to do some nice things like only post stuff to DEBUG. So in normal situations your addon doesn't cram the log full of verbose information, but if the user sets the log level to debug, then they get all the additional log information.
(2014-04-21, 22:41)pkscuot Wrote: [ -> ]If you're just doing this for some internal debugging, print is probably fine. But if you're going to release the addon, you should really look at the xvmc.log function.

http://mirrors.xbmc.org/docs/python-docs....html#-log

It allows you to do some nice things like only post stuff to DEBUG. So in normal situations your addon doesn't cram the log full of verbose information, but if the user sets the log level to debug, then they get all the additional log information.

Thanks, that's really helpful. I'm using a log viewer to show me the output in real time. It's very handy!