Skip to content

Instantly share code, notes, and snippets.

@ValeriiVasyliev
Last active May 18, 2021 08:10
Show Gist options
  • Save ValeriiVasyliev/9bd7cf3a3b2a6a17099ad5857b8ffda7 to your computer and use it in GitHub Desktop.
Save ValeriiVasyliev/9bd7cf3a3b2a6a17099ad5857b8ffda7 to your computer and use it in GitHub Desktop.
Drupal 8. Debug errors

Copy File

cp sites/example.settings.local.php sites/default/settings.local.php

Change settings

$config['system.logging']['error_level'] = 'verbose'; // hide|some|all|verbose

Print variable

####Install

Using Drush:

$ drush dl devel
$ drush en kint

Or using Drupal Console:

$ drupal module:download devel --latest
$ drupal module:install kint

kint()

ksm()

dpm()

dsm()

{{ kint() }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment