Previously this would error due to undefined `doom-debug-on-error` variable. Now behaves like a minor-mode function to toggle both `doom-debug-mode` and `debug-on-error`.