Only pop up the stack viewer when requested in the Debug menu.

This commit is contained in:
Guido van Rossum 1999-02-16 22:34:17 +00:00
parent 6724835959
commit 9ea32898db
1 changed files with 2 additions and 1 deletions

View File

@ -131,7 +131,8 @@ class ScriptBinding:
sys.last_traceback) = sys.exc_info()
linecache.checkcache()
traceback.print_exc()
if not debugger:
if not debugger and \
self.editwin.getvar("<<toggle-jit-stack-viewer>>"):
from StackViewer import StackBrowser
sv = StackBrowser(self.root, self.flist)
finally: