Enable Debug mode in Drupa8

Add the following line in settings.php
$config['system.logging']['error_level'] = 'verbose';