If a macOS application crashes, CrashReporter will (optionally) pop up a window with a human-readable set of stack traces and the "Send to Apple" button.
Is there a straightforward way to get the same results for a non-.app
program which crashes when started from the command line? That is, the situation I want more information out of is
$ some-program
Segmentation fault: 11
$
I've only found instructions about how to enable core dumps, but not how to get something readable out of them. I know that Activity Monitor can "sample" running programs, but I'm looking for the crash event, not profiling.
I've thought of creating a dummy .app
package that actually runs the command that's crashing, but that'll be a bit of work and probably run into some Gatekeeper trouble, though I haven't actually tried doing that since a few major versions ago. I'm currently on Catalina 10.15.7.