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 directly switches to debug mode even when the option is turned off

See original GitHub issue

Description

What steps will reproduce the problem?

Spyder directly switches to debug mode even when the option is turned off

Versions

  • Spyder version: 4.1.3
  • Python version: 3.7.7
  • Qt version: 5.9.6
  • PyQt5 version: 5.9.2
  • Operating System: Linux 5.3.0-53-generic

Dependencies


# Mandatory:
atomicwrites >=1.2.0           :  1.3.0 (OK)
chardet >=2.0.0                :  3.0.4 (OK)
cloudpickle >=0.5.0            :  1.4.0 (OK)
diff_match_patch >=20181111    :  20181111 (OK)
intervaltree                   :  None (OK)
IPython >=4.0                  :  7.13.0 (OK)
jedi =0.15.2                   :  0.15.2 (OK)
keyring                        :  None (OK)
nbconvert >=4.0                :  5.6.1 (OK)
numpydoc >=0.6.0               :  0.9.2 (OK)
parso =0.5.2                   :  0.5.2 (OK)
pexpect >=4.4.0                :  4.8.0 (OK)
pickleshare >=0.4              :  0.7.5 (OK)
psutil >=5.3                   :  5.7.0 (OK)
pygments >=2.0                 :  2.6.1 (OK)
pylint >=0.25                  :  2.4.4 (OK)
pyls >=0.31.9;<0.32.0          :  0.31.10 (OK)
qdarkstyle >=2.8               :  2.8.1 (OK)
qtawesome >=0.5.7              :  0.7.0 (OK)
qtconsole >=4.6.0              :  4.7.3 (OK)
qtpy >=1.5.0                   :  1.9.0 (OK)
rtree >=0.8.3                  :  0.9.4 (OK)
sphinx >=0.6.6                 :  3.0.3 (OK)
spyder_kernels >=1.9.1;<1.10.0 :  1.9.1 (OK)
watchdog                       :  None (OK)
xdg >=0.26                     :  0.26 (OK)
zmq >=17                       :  18.1.1 (OK)

# Optional:
cython >=0.21                  :  0.29.17 (OK)
matplotlib >=2.0.0             :  3.1.3 (OK)
numpy >=1.7                    :  1.18.1 (OK)
pandas >=0.13.1                :  1.0.3 (OK)
scipy >=0.17.0                 :  1.4.1 (OK)
sympy >=0.7.3                  :  1.5.1 (OK)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ma-sadeghicommented, May 20, 2020

@ccordoba12 Sorry, my bad. Although I had indeed turned off the debug mode in Preferences, apparently I had turned it on for that specific file, which overrode the Preferences. Anyways, thanks for the follow up.

1reaction
ma-sadeghicommented, May 20, 2020

I turned it off when recording the gif, I’ll double check

On Wed, May 20, 2020 at 5:15 PM Carlos Cordoba notifications@github.com wrote:

@goanpeca https://github.com/goanpeca, that’s not the default.

@ma-sadeghi https://github.com/ma-sadeghi, this can only happen for all files if you went to

Tools > Preferences > Run > General settings

and activated the option

Directly enter debugging when errors appear

or for the file you’re working with, if you went to

Run > Configuration per file

and activated the same option.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/spyder-ide/spyder/issues/12807#issuecomment-631730878, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADLO7D4FUIU3M47UQ6ZZJZLRSRB7BANCNFSM4NF53UUQ .

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
Stop Spyder from opening the underlying file when in debug ...
On left menu choose “Run” then locate “General settings” section then uncheck "Directly enter debugging when errors appear."
Read more >
Spydercast Episode 4: Debug your code with Spyder! - YouTube
Join us at our fourth Spydercast, where we will show you how to debug your code using Spyder. Tune in at 18:00 UTC...
Read more >
How To Debug Python Code In Spyder IDE - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >
How To Use Logging in Python 3 | DigitalOcean
When using print() statements dispersed throughout code, there is no efficient way to disable the ones that provide debugging output; It becomes ...
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