Can I put break points on background threads in Python?

后端 未结 4 977
無奈伤痛
無奈伤痛 2021-01-12 08:04

I\'m using the PyDev for Eclipse plugin, and I\'m trying to set a break point in some code that gets run in a background thread. The break point never gets hit even though t

4条回答
  •  -上瘾入骨i
    2021-01-12 08:41

    For me this worked according to one of Fabio's posts, after setting the trace with setTrace("000.000.000.000") # where 0's are the IP of your computer running Eclipse/PyDev

    threading.settrace(pydevd.GetGlobalDebugger().trace_dispatch)
    

提交回复
热议问题