I had the same problem (fatal erros registered in production but not emailed) and I managed to get it working by adding to my config_prod.php:
services: mydebug.debug_handlers_listener: class: Symfony\Component\HttpKernel\EventListener\DebugHandlersListener arguments: - { 0:"@http_kernel", 1:'terminateWithException'} tags: - { name: kernel.event_subscriber }
I found that such a service is defined in \vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Resources\config\debug.xml , but not in debug_prod.xml .
With a call to terminateWithException it works fine in my application.
source share