Debugging a plugin

Asked by Jonathan Leeson on 2013-08-20


I'm currently working on creating a python plugin for livewallpaper, and would like to know if there are any options for debugging the plugin.


Question information

English Edit question
LiveWallpaper Edit question
No assignee Edit question
Last query:
Last reply:
Jonathan Leeson (jonyleeson) said : #1

I've just tested the example python plugin without any changes, and it also seems to not be working, as there's only a black background (this is the same error I'm getting with my plugin).

Maximilian Schnarr (fyrmir) said : #2


I personally use a lot of print statements to debug a plugin. It is not the best solution, but it is good enough to figure out, what happens or what value a variable has. Just start livewallpaper from a command line to see the output of the print statements.

I also tested using pdb to debug a python plugin. Just import pdb and add a pdb.set_trace() somewhere in the code to add a breakpoint for example.

The example plugins don't work at the moment. I haven't updated them to work with the latest daily build of livewallpaper. I will upload an updated version of the python example plugin in the next few minutes.

Can you help with this problem?

Provide an answer of your own, or ask Jonathan Leeson for more information if necessary.

To post a message you must log in.