How to disable crash reporter temporarily
How to disable crash reporter temporarily
- Subject: How to disable crash reporter temporarily
- From: David Mirabito <email@hidden>
- Date: Sun, 10 Mar 2013 15:21:01 +1100
Hi,
I'm working on a application which links against some cocoa libs, so is a
cocoa app although not wrapped in a bundle. (The lib takes care of all the
cocoa-ishness internally so my app ends up being more or less cross
platform).
Whenever I get a crash the Apple Crash reporter pops up and claims some
stuff is sent off to Apple.
Now I don't really mind this - it's just annoying to have to click over to
make it go away, so not like I am very concerned about sensitive info or
anything. I never read the diag anyway, if the crash is non-obvious I just
re-run it in gdb/lldb to see what's what. If apple want to get dozens of
crash repports for 'davestestapp' then good for them.
I've looked into ways to disable this, and so far I've found two ways:
- "defaults write com.apple.CrashReporter DialogType none" Doesnt stop the
dump from being written (or sent???) but at least stops the annoying diag.
This appears to be permanant until I set it back to 'crashreport'
- using launchctl to unload the reporter daemon all together. Setting
survives until next login and requires a 'sudo' step.
Now these can be made workable, but was wondering if there's a better way
that isn't system wide or sticky beyond a development session - I can see
myself forgetting to re-enable it. So is there an environment var or
something else I can do on app launch to disable crash reporting for that
instance? Do debuggers/XCode do anything special?
Alternatively, is there something I can do in code - may I get around this
by catching the signal and crashing in some other way, so as not to poke
the reporter daemon, etc?
Finally, I do often run the app from as a rule from a build system I have
full control over, so if there is something that can be done when exec'ing
the binary, this will also be acceptable.
Thanks in advance,
DavidM
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden