diff --git a/collects/gui-debugger/debug-tool.ss b/collects/gui-debugger/debug-tool.ss index 8a2df449fa..c728630945 100644 --- a/collects/gui-debugger/debug-tool.ss +++ b/collects/gui-debugger/debug-tool.ss @@ -1060,9 +1060,8 @@ (cond [(eq? tab (send tab get-master)) (set! debug? #t) - (send (get-current-tab) prepare-execution debug?) - (set! debug? #f) - (execute-callback)] + (execute-callback) + (set! debug? #f)] [else (already-debugging tab)]))) @@ -1070,6 +1069,7 @@ (let ([tab (get-current-tab)]) (cond [(eq? tab (send tab get-master)) + (send (get-current-tab) prepare-execution debug?) (super execute-callback)] [else (already-debugging tab)])))