In this tutorial, I am going to show you how to Enable Twig debugging options in Drupal 8.
To enable twig debugging
1. Go to sites/default/services.yml file
2. Look for services.yml if it doesn't exist then copy it & rename to services.yml
3. Open the services.yml file in the editor and change the default value of debugging options.
Default Value of debugging options Under twig.config section: