question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spyder 4 not consistent at stopping at breakpoints in debugging.

See original GitHub issue

Problem Description

Spyder 4 sometimes skip some breakpoints in debugging and stop at the next. Restarting debugging never helps. A don’t know if it is a separate issue, but at pass keyword always skips breakpoints.

What steps reproduce the problem?

Stochastic:

  1. I set a breakpoint.
  2. Start Debug

What is the expected output? What do you see instead?

Always stopping at breakpoints

Versions

  • Spyder version: 4.0.1
  • Python version: 3.7.6 64 bit
  • Qt version: 5.9.6
  • PyQt version: 5.9.2
  • Operating System name/version: Windows 10

Dependencies

atomicwrites >=1.2.0 : 1.3.0 (OK) chardet >=2.0.0 : 3.0.4 (OK) cloudpickle >=0.5.0 : 1.2.2 (OK) diff_match_patch >=20181111 : 20181111 (OK) intervaltree : None (OK) IPython >=4.0 : 7.11.1 (OK) jedi =0.14.1 : 0.14.1 (OK) nbconvert >=4.0 : 5.6.1 (OK) numpydoc >=0.6.0 : 0.9.2 (OK) pexpect >=4.4.0 : 4.7.0 (OK) pickleshare >=0.4 : 0.7.5 (OK) psutil >=0.3 : 5.6.7 (OK) pygments >=2.0 : 2.5.2 (OK) pylint >=0.25 : 2.4.4 (OK) pyls >=0.31.2;<0.32.0 : 0.31.2 (OK) zmq >=17 : 18.1.0 (OK) qdarkstyle >=2.7 : 2.7 (OK) qtawesome >=0.5.7 : 0.6.0 (OK) qtconsole >=4.6.0 : 4.6.0 (OK) qtpy >=1.5.0 : 1.9.0 (OK) rtree >=0.8.3 : 0.8.3 (OK) sphinx >=0.6.6 : 2.3.1 (OK) spyder_kernels >=1.8.1;<2.0.0: 1.8.1 (OK) watchdog : None (OK) cython >=0.21 : None (NOK) matplotlib >=2.0.0 : 3.1.1 (OK) numpy >=1.7 : 1.17.4 (OK) pandas >=0.13.1 : 0.25.3 (OK) scipy >=0.17.0 : 1.3.2 (OK) sympy >=0.7.3 : None (NOK)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
OverLordGoldDragoncommented, Jan 12, 2020

I share the problem

1reaction
impact27commented, Jan 12, 2020

I tried this: Screenshot 2020-01-12 at 21 46 04 The debugger stops on line 2 and 3. Do you have a reproducible case?

Read more comments on GitHub >

github_iconTop Results From Across the Web

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...
Read more >
Debugger — Spyder 5 documentation
Spyder's debugger is integrated with the Breakpoints pane, which lists the file, line, and condition (if any) of every breakpoint defined. To open...
Read more >
Getting the Debugger to work (5.1.5)
I have made a trivial program and set breakpoints, and can run it to completion. However when I hit debug, it stops at...
Read more >
Debugging step by step with Spyder 4 and Python - YouTube
Recorded with https://screencast-o-matic.com.
Read more >
Python Code Blocks and Debugging (Spyder 5 IDE) - YouTube
This video is an overview of the inbuilt Python programming language and will focus on structuring your code using code blocks.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found