To configure the error messages visibility, set an appropriate configuration in the settings.php
file
// Show all error messages, including notices and coding standards warnings.
$config['system.logging']['error_level'] = 'verbose';
File: /path/to/docroot/sites/<SITE_NAME>/settings.php
.
Then clear the Drupal cache.