add a show_backtrace function for debugging.