How to disable and enable the Crash Reporter on MacOS

The Crash Reporter can consume quite some system resources if one process is out of bounds. Here is how you can disable it.

launchctl unload -w /System/Library/LaunchAgents/
sudo launchctl unload -w /System/Library/LaunchDaemons/

Here is how you re-enable it:

launchctl load -w /System/Library/LaunchAgents/
sudo launchctl load -w /System/Library/LaunchDaemons/