Only show backtrace in debug mode