2016-04-14, 12:59
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: YouTube addon (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...
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: YouTube addon (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...