An easy option, if you have access to drupal consoleDrupal Console, is to enable the development/debugging environment using
drupal site:mode dev
and drupal site:mode dev
; when you are ready to change it back to production, use drupal site:mode prod
.
drupal site:mode prod