Debugging a plugin

Asked by Jonathan Leeson

Hi,

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.

Thanks,

Question information

Language:
English Edit question
Status:
Answered
For:
LiveWallpaper Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
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).

Revision history for this message
Maximilian Schnarr (fyrmir) said :
#2

Hi,

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.