Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting Breaktpoints in Spyder doesn't work

I'm very new working with Python and Spyder. I use Python 3.5 and Spyder 2.3.8. I wanted to debug my code and set a breakpoint. Then this error appeared in the Internal console:

    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'

When I run the code the breakpoints are ignored. Any ideas how to solve this? Thanks!

like image 819
Bec Avatar asked Feb 20 '26 05:02

Bec


1 Answers

When I want breakpoints to be taken into account, I often forget to launch my code:

  • via the Ctrl + F5 icon (the blue arrow + double-bar),

  • instead of the usual F5 (the green arrow).

like image 105
stonebig Avatar answered Feb 22 '26 18:02

stonebig



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!