gpt4 book ai didi

python - 在 Spyder 中设置断点不起作用

转载 作者:行者123 更新时间:2023-12-05 01:02:04 54 4
gpt4 key购买 nike

我是使用 Python 和 Spyder 的新手。我使用 Python 3.5 和 Spyder 2.3.8。我想调试我的代码并设置断点。然后内部控制台出现了这个错误:

    Traceback (most recent call last): 
File "C:\Anaconda3\lib\site-packages\spyderlib\plugins\externalconsole.py", line 713, in set_spyder_breakpoints
shellwidget.shell.set_spyder_breakpoints()
AttributeError: 'TerminalWidget' object has no attribute 'set_spyder_breakpoints'

当我运行代码时,断点会被忽略。任何想法如何解决这个问题?谢谢!

最佳答案

当我想要考虑断点时,我经常忘记启动我的代码:

  • 通过 Ctrl + F5 图标(蓝色箭头 + 双栏),

  • 而不是通常的 F5(绿色箭头)。

关于python - 在 Spyder 中设置断点不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37004051/

54 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com