                       (switch-to-buffer-other-window
                        straight-bug-report--process-buffer))
                     (unless ,preserve-files
-                      (debug)
                       (delete-directory ,temp-emacs-dir 'recursive))))
        (message "Testing straight.el in directory: %s"
                 ,temp-emacs-dir))))

            (,test              ,program)
            (,report            ,reportform)
            (,temp-emacs-dir    ,temp-dir))
       ;; Reset process buffer
       (with-current-buffer (get-buffer-create
                             straight-bug-report--process-buffer)
         (fundamental-mode)

      If non-nil, the test is run with `emacs-user-dir' set to STRING.
      Otherwise, a temporary directory is created and used.
      Unless absolute, paths are expanded relative to the variable
      `temproary-file-directory'.

ARGS are accessible within the :pre/:post-bootsrap phases via the
locally bound plist, straight-bug-report-args."
  (declare (indent 0))
  (let* ((preserve-files    (make-symbol "preserve-files"))
         (temp-emacs-dir    (make-symbol "temp-emacs-dir"))
