Troubleshooting in Drupal 8

kgoel
tstoeckler

Have you got lost in Drupal 8 code and wish you knew some tools or tips on how to debug code in Drupal 8? Troubleshotting is both art and science of solving a problem. In this session Tobias Stockler and I will be sharing some tools and tips for troubleshooting in Drupal 8.

This session will help you understand how not to just rely on dpm, print_r($vars) but experience debugging on whole new level and make your life easier. We'll discuss proven methodologies of troubleshooting, including defining what the problem that is being solved. How to step back from the problem and simplify the problem to the simple approach? Stepping back from the problem and see if there is another way to solve the problem.

In this session, we will cover -

  • How to turn on error messages in Drupal 8 
  • Dynamic Page Cache
  • Render Cache
  • Enable Twig debugging, advantages and disadvantages of Twig debugging
  • xdebug
  • kint
  • Drupal Console 
  • XHProf
  • Web-profiler
  • IRC
  • Rubber duck programming

 

Session Track

Coding and Development

Experience Level

Intermediate

Drupal Version