The Easiest Way to Debug Drupal Themes and Modules

The Easiest Way to Debug Drupal Themes and Modules

Are you looking for an easy way to find errors thrown by your Drupal modules and themes?

A lot of new developers are learning to create their first Drupal 8 modules or Drupal 8 themes. Often they’ve made a very small typo or spacing error and are looking for an easy way to debug their mistake.

Follow this tutorial, and you’ll quickly be able to see a detailed list of recent errors on your Drupal site.

  • Go to Configuration > “Logging and errors”.

The logging and errors link in Drupal

  • Under “Error messages to display”, check “All messages”.
  • Click “Save configuration”.

all messages option for debugging in Drupal

  • Go to Reports > “Recent log messages”.

recent log messages in Drupal

  • You’ll now be able to see many of the errors that themes and modules are reporting to Drupal:

log messages in Drupal

The Drupal 8 module development and Drupal 8 theme design classes do offer more advanced ways to debug your work, but this approach is a quick and easy way to find important errors.

Author

  • Steve Burge

    Steve is the founder of OSTraining. Originally from the UK, he now lives in Sarasota in the USA. Steve's work straddles the line between teaching and web development.

0 0 votes
Article Rating
Subscribe
Notify of
4 Comments
Oldest
Newest
Inline Feedbacks
View all comments
Zhilevan Ibra
Zhilevan Ibra
7 years ago

Really you call this a Article? with that Title? Debugging? it just a Amateur post about Drupal. the Basics about things on Drupal.
instead of cheating try to write better Article not this …. :(.

I had seen better articles from you , this is not in your level. remove it please.

steve
steve
6 years ago
Reply to  Zhilevan Ibra

“The Drupal 8 module development and Drupal 8 theme design classes do offer more advanced ways to debug your work, but this approach is a quick and easy way to find important errors.”

BlueNinjaSmurf
BlueNinjaSmurf
6 years ago

Yeah, this is weak ass crap. Not useful. Then again, most Drupal 8 articles seem to be pretty worthless at this point. Maybe because most of the community does not fully understand D8, Symfony, or OOP PHP.

steve
steve
6 years ago
Reply to  BlueNinjaSmurf

Same reply as to the commenter above … “The Drupal 8 module development and Drupal 8 theme design classes do offer more advanced ways to debug your work, but this approach is a quick and easy way to find important errors.”

4
0
Would love your thoughts, please comment.x
()
x