On Fri, Oct 2, 2020 at 5:29 PM aihui zhu <mr.zh...@gmail.com> wrote: > thank you. i see that there are also .crash file generated at > ~/Library/Logs/DiagnosticReports > ``` > ➜ ~ ls Library/Logs/DiagnosticReports/a.out_2020-10-02-1337* -lh > -rw------- 1 zah _analyticsusers 22K Oct 2 13:37 > Library/Logs/DiagnosticReports/a.out_2020-10-02-133721_hac.crash > -rw------- 1 zah _analyticsusers 21K Oct 2 13:37 > Library/Logs/DiagnosticReports/a.out_2020-10-02-133751_hac.crash > ``` > could go generates .crash file? >
Those are simple text files that contain a report of the event that resulted in an application crash. They are created by macOS. The program that crashes does not create that file. Which means that Go should not attempt to create that file. Also, Go already emits most of what you need to know when a Go program crashes. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD9fmh9S%3D9eRkiSzHY%2BcBtBLqAo4YPP5EyuHLv7nqwB8%2Bw%40mail.gmail.com.