Here at ONERA, we have a problem concerning the debug under Eclipse IDE.
Are you able to use breakpoints and debug mode into a device written in Python ?
Is it a PyDev problem ?
Yes, it is a problem in PyDev
In summary: PyDev is not able to recognize threads that are not created by python. All threads in a PyTango device server are created at the C++ Tango level. That is why you cannot debug a PyTango device server using PyDev.
In the past, a recipe that worked was to add some code in the beginning of the main of your device server:
_pydev_trace_func = None
debugger = pydevd.GetGlobalDebugger()
if debugger is not None:
_pydev_trace_func = debugger.trace_dispatch
print("PyTango in PyDev mode")
I have tried this with a recent eclipse and failed :(
I have googled it and it seems it is a common problem.
A workaround would be to use a PyDev as a remote debugger (I personally never used it)
I recommend debugging with winpdb: http://winpdb.org/
Since it is a PyDev problem I will close this bug report.