PyCharm在debug时报错:‘PyDBCommandThread‘ object has no attribute ‘isAlive‘. Did you mean: ‘is_alive‘? 新下载并配置好环境的PyCharm在进行debug有可能会报错AttributeError: PyDBCommandThread object has no attribute isAlive. Did you mean: is_alive?这是由于代码中调用了已被废弃的isAlive()方法而在Python 3.10及以上版本中该方法已被重命名为is_alive()以符合PEP 8命名规范。解决办法我们只需要点击错误提示中的文件名“pydev_is_thread_alive.py”打开文件。在文件末尾找到 return t.isAlive() 语句并将其改为 return t.is_alive() 即可更改后的debug功能恢复正常