Addon debugging problem
#1
Hello,

I am trying to set up debugging of Kodi addons using Eclipse + PyDev.
The problem I have is that the FIRST time the addon is run it works fine: the debugger breaks on the line after the pydevd.settrace() call, and I can step through the Python code.
At any subsequent runs an exception is thrown in PyDev and the addon exits.

I have set up debugging according to these articles:
1) http://kodi.wiki/view/HOW-TO:Debug_Pytho...th_Eclipse
2) https://www.youtube.com/watch?v=pWGaLl87xXk

Setup:
Windows 10 / Kodi 16.1 / Eclipse 4.5.2 / PyDev 4.5
Addon: Exodus (other addons same story)
PyDev exception: 'RuntimeError: classes are read-only in restricted mode' in pydevd_tracing.py line 77

The basic setup seems OK (otherwise it would not break at all in Eclipse).
I suspect the problem has to do with the fact that each time the addon runs on a different thread in Kodi.
I tried settrace(..., trace_only_current_thread=False) (see http://devlvl99.blogspot.nl/2014/01/debu...pydev.html), but that did not help.

The same problem occurs if I debug using VS2013 and 'Python Tools for Visual Studio': at the first addon run it breaks into the VS debugger, but at subsequent runs it does not.

Any ideas?

Kodi newbie...
Reply
#2
Not a good add-on to pick as an example.

Read the forum rules (wiki) on piracy and banned add-ons (wiki) please. We do not support any installation which is contaminated with them.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply

Logout Mark Read Team Forum Stats Members Help
Addon debugging problem0