[WIP] PR: Add post_mortem to runcell calls for "run current cell" action #19611
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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".
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