4

I'm using Eclipse to develop a PyQt application using PyDev. It's using two threads, one for gui and one for network traffic and Eclipse refuse to break on breakpoints set in the network traffic thread, I know it runs because it's throwing exceptions but I can't inspect things which is highly annoying.

Has anybody else experienced similar problems? Pseudocode:

 class NetHelper
     sendLots()

 class Worker(QThread):
     run()
        NetHelper.sendLots()

 class GUIThingie(QDialog):
     handleClick():
         self.worker.start()
dutt
  • 7,909
  • 11
  • 52
  • 85
  • Yeah, I'm experiencing the same issue at this moment :-/ – Tobi Apr 05 '11 at 19:47
  • 1
    Tobi: I think it's because QThread is based on c++-threads which the PyDev-debugger can't handle, switching to inheritance from normal Thread solved the issue for me. – dutt Apr 06 '11 at 15:17
  • How do you switch to inheritance from normal Thread? – jpcgt Aug 31 '14 at 00:50
  • @dutt I tried using Python Threads with PyQt4 and the problems was that Qt does not provide a mechanism for communicating from the worker threads to the GUI thread in a thread-safe way. See [this post](http://stackoverflow.com/questions/1595649/threading-in-a-pyqt-application-use-qt-threads-or-python-threads). – jpcgt Sep 02 '14 at 15:20

0 Answers0