I am trying to debug a crashed (or hanging) app. How do I get the diagnostic files from the crash?
|
Individual crash reports are stored in ~/Library/Logs/CrashReporter but there is a system wide log collection tool called sysdiagnose. Once you start experiencing the issue, hold down the 4 control keys and then press the period "." key. shift+control+option+command+. After about 15 seconds, a Finder window will open with a sysdiagnose file highlighted.
This shortcut simply executes the |
|||||||||||||
|
Apple sysdiagnoseThis script:
Preparing for the keyboard-only approach to sysdiagnoseIn Terminal, run the following command.
Take a written note of the following key chord, you'll need it later: Control-Option-Command-Shift-. Diagnosis by the systemWhen an issue occurs:
ExceptionallyIn rare cases, an issue may prevent sysdiagnose from completing (I have made improvement suggestions to Apple). If this happens – if you're sure that you have waited long enough – it may be sensible to restart the Mac. Then:
HintsWithout the key chord, you can run sysdiagnose from the command line (see below, Apple manual page). But it's often more useful, or necessary, to use the chord – so be prepared. Whilst I don't encourage carelessness, you can be a little careless with Control-Option-Command-Shift-. … if you struggle to avoid the fn key on your laptop, don't worry; including it by accident should not prevent the run of Human analysis of diagnosis by the systemHint: someone might like to ask a separate question about analysing the results of If sysdiagnose_… from the
|


