summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
Diffstat (limited to 'Tools')
-rw-r--r--Tools/idle/ScriptBinding.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/idle/ScriptBinding.py b/Tools/idle/ScriptBinding.py
index 12dedb6..0e7810b 100644
--- a/Tools/idle/ScriptBinding.py
+++ b/Tools/idle/ScriptBinding.py
@@ -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: