diff --git a/doc/nano.1 b/doc/nano.1
index bf8ff87155c3ffd8c9d89a48a14645e4c3650fde..c7fb74333f7dde092f91b9ab2e80ea41bfa981db 100644
--- a/doc/nano.1
+++ b/doc/nano.1
@@ -309,6 +309,10 @@ not by default distinguish modified from unmodified arrow keys.
 Please report any other bugs that you encounter via:
 .br
 \fIhttps://savannah.gnu.org/bugs/?group=nano\fR.
+.sp
+When nano crashes, it will save any modified buffers to emergency .save files.
+If you are able to reproduce the crash and you want to get a backtrace, define
+the environment variable \fBNANO_NOCATCH\fR.
 
 .SH HOMEPAGE
 \fIhttps://nano-editor.org/\fR
diff --git a/src/nano.c b/src/nano.c
index 2398d91c9b38f67de942f72c5d19555397317ce7..2620b41898ff7dc6f6dc0a1933a1865b77eff816 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -1213,6 +1213,7 @@ void signal_init(void)
 	}
 
 #ifndef DEBUG
+	if (getenv("NANO_NOCATCH") == NULL) {
 	/* Trap SIGSEGV and SIGABRT to save any changed buffers and reset
 	 * the terminal to a usable state.  Reset these handlers to their
 	 * defaults as soon as their signal fires. */
@@ -1220,6 +1221,7 @@ void signal_init(void)
 	act.sa_flags |= SA_RESETHAND;
 	sigaction(SIGSEGV, &act, NULL);
 	sigaction(SIGABRT, &act, NULL);
+	}
 #endif
 }