1## Crashes
2
3When an app crashes, macOS creates a `.ips` file in `~/Library/Logs/DiagnosticReports`. You can view these using the built in Console app (`cmd-space Console`) under "Crash Reports".
4
5If you have enabeld Zed's telemetry these will be uploaded to us when you restart the app. They end up in Datadog, and a [Slack channel (internal only)](https://zed-industries.slack.com/archives/C04S6T1T7TQ).
6
7These crash reports are generated by the crashing binary, and contain a wealth of information; but they are hard to read for a few reasons:
8
9- They don't contain source files and line numbers
10- The symbols are [mangled](https://doc.rust-lang.org/rustc/symbol-mangling/index.html)
11- Inlined functions are elided
12
13To get a better sense of the backtrace of a crash you can download the `.ips` file locally and run:
14
15```
16./script/symbolicate ~/path/zed-XXX-XXX.ips
17```
18
19This will download the correct debug symbols from our public [digital ocean bucket](https://zed-debug-symbols.nyc3.digitaloceanspaces.com), and run [symbolicate](https://crates.io/crates/symbolicate) for you.
20
21The output contains the source file and line number, and the demangled symbol information for every inlined frame.
22
23## Panics
24
25When the app panics at the rust level, Zed creates a file in `~/Library/Logs/Zed` with the text of the panic, and a summary of the backtrace. On boot, if you have telemetry enabled, we upload these panics so we can keep track of them.
26
27A panic is also considered a crash, and so for most panics we get both the crash report and the panic.