mirror of
https://github.com/python/cpython.git
synced 2025-11-11 22:55:08 +00:00
Only pop up the stack viewer when requested in the Debug menu.
This commit is contained in:
parent
6724835959
commit
9ea32898db
1 changed files with 2 additions and 1 deletions
|
|
@ -131,7 +131,8 @@ class ScriptBinding:
|
||||||
sys.last_traceback) = sys.exc_info()
|
sys.last_traceback) = sys.exc_info()
|
||||||
linecache.checkcache()
|
linecache.checkcache()
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
if not debugger:
|
if not debugger and \
|
||||||
|
self.editwin.getvar("<<toggle-jit-stack-viewer>>"):
|
||||||
from StackViewer import StackBrowser
|
from StackViewer import StackBrowser
|
||||||
sv = StackBrowser(self.root, self.flist)
|
sv = StackBrowser(self.root, self.flist)
|
||||||
finally:
|
finally:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue