There are a number of steps you can take just within Drupal 8 that will help you diagnose problems in your site. If you have Drupal Console installed, you can enable many of these modules by running drupal site:mode dev
. Many of the debugging settings are controlled in the /sites/default/services.yml
file.
If there isn't one already, you can copy the starting /sites/default/default.services.yml
file to the services.yml
file to start with.
The first step is to start looking at how your code is running to ensure that caching is off. Otherwise, you may find yourself wondering why your errors appear only intermittently. You might want to start off by disabling both the dynamic page cache and render cache. If you have not done it already, you should enable the settings.local.php
file by finding and uncommenting the line in the default /sites/default/settings.php
file that has the following:
if (file_exists(__DIR__ . '/settings.local.php')) { include...