I'm not so keen on programs trying to be clever like this. How about making the system debugger better, which will benefit all programs? Actually that's not even necessary as abrt / coredumpctl on Linux are pretty good these days, even being able to automatically file a bug report with your distro.