WordPress
public_html/wp-config.php
Change wordpress debugging mode to true like below in wp-config.php
define(‘WP_DEBUG’, true);
or add code below
define( ‘SCRIPT_DEBUG’, true );
Drupal
sites/default/settings.php
Add below code in settings.php file.
$config[‘system.logging’][‘error_level’] = ‘verbose’;