Can I put break points on background threads in Python?

后端 未结 4 1016
無奈伤痛
無奈伤痛 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条回答
  •  情歌与酒
    2021-01-12 08:39

    On this question, I found a way to start the command-line debugger:

    import pdb; pdb.set_trace()
    

    It's not as easy to use as the Eclipse debugger, but it's better than nothing.

提交回复
热议问题