bpo-23544: Disable IDLE Stack Viewer when running user code#17163
Conversation
"Stack Viewer" is now disabled when user code is running.
|
An alternative fix would be to use a method like |
|
I like this approach! I suggest also moving the check for the existence of |
|
Currently, selecting "Debug -> Stack Viewer" also fails if a successful command was last run, or even just an empty statement. If fails after a small delay and just sounds the bell rather than displaying an error box. Ideally, we would recognize that case as well and have the menu option disabled in such cases. |
terryjreedy
left a comment
There was a problem hiding this comment.
I changed index patterns to not care about trivial changes, such as 'Stack Viewer' to 'Stack viewer' and to fail given inconsistent menu and pattern changes. I manually tested that everything works.
I will merge this when CI passes to fix hangs (user code executing) and crashes (Debugger active). I would test and likely merge a new patch to allow a stack viewer anytime. If either of you decide to do it, open and issue and say so.
|
Thanks @ZackerySpytz for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9. |
|
Thanks @ZackerySpytz for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8. |
…-17163) Starting stack viewer when user code is running, including when Debugger is active, hangs or crashes IDLE. Co-authored-by: Terry Jan Reedy <[email protected]> (cherry picked from commit 23a567c) Co-authored-by: Zackery Spytz <[email protected]>
|
GH-24365 is a backport of this pull request to the 3.9 branch. |
…-17163) Starting stack viewer when user code is running, including when Debugger is active, hangs or crashes IDLE. Co-authored-by: Terry Jan Reedy <[email protected]> (cherry picked from commit 23a567c) Co-authored-by: Zackery Spytz <[email protected]>
|
GH-24366 is a backport of this pull request to the 3.8 branch. |
Starting stack viewer when user code is running, including when Debugger is active, hangs or crashes IDLE. Co-authored-by: Terry Jan Reedy <[email protected]> (cherry picked from commit 23a567c) Co-authored-by: Zackery Spytz <[email protected]>
#24366) Starting stack viewer when user code is running, including when Debugger is active, hangs or crashes IDLE. Co-authored-by: Zackery Spytz <[email protected]> Co-authored-by: Terry Jan Reedy <[email protected]> (cherry picked from commit 23a567c)
|
splat from unrelated 3 tests failed: |
…-17163) Starting stack viewer when user code is running, including when Debugger is active, hangs or crashes IDLE. Co-authored-by: Terry Jan Reedy <[email protected]>
Starting stack viewer when user code is running hangs IDLE.
https://bugs.python.org/issue23544