Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] PR: Add post_mortem to runcell calls for "run current cell" action #19611

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

stevetracvc
Copy link
Contributor

@stevetracvc stevetracvc commented Sep 26, 2022

Description of Changes

When the user uses the "run current cell" action, enter postmortem on an error if the user has set the run config "Directly enter debugging when errors appear".

  • Wrote at least one-line docstrings (for any new functions)
  • Added unit test(s) covering the changes (if testable)
  • Included a screenshot or animation (if affecting the UI, see Licecap)
output.mp4

I added the post_mortem flag to the runcell call for the "run current cell" or "run current cell and go to the next one" action. This value is read from the user's settings. I often run my programs cell by cell, so it's convenient to drop into debug mode if there's an error somewhere in the cell. Also, it seems more consistent for the "run" and "run current cell" actions to have similar behavior.

I feel like there might be a better location to read the config setting, which is why I flagged this as WIP.

Issue(s) Resolved

Fixes #

Affirmation

By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct:
stevetracvc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant