Back to Browse

Display Errors and Print Variables in Drupal CMS

451 views
Streamed live on Oct 17, 2025
1:31:05

👉 Support the channel & get exclusive content - Join WebWash Premium: https://www.webwash.net/premium/ Join our free live stream to learn how to view error messages and inspect variables in Drupal. Whether you're troubleshooting the White Screen of Death or trying to understand what's happening in your code, this session will give you the tools you need. We'll cover: - Displaying error messages and configuring error reporting - Handling the White Screen of Death (WSOD) - Using Devel and WebProfiler for debugging - Implementing Ignition (3rd party library) for beautiful error pages - Printing variables with dump() and other debugging functions Come hang out, learn essential debugging skills, and ask questions. # Links and modules https://www.drupal.org/project/devel https://www.drupal.org/project/webprofiler https://www.drupal.org/project/ignition https://www.drupal.org/project/kint https://xdebug.org/ https://docs.ddev.com/en/stable/users/debugging-profiling/step-debugging/#ide-setup # Chapters 00:00 Preshow 03:22 WebWash Premium ## Introduction 05:04 Introduction 06:07 What we'll cover ## Display Errors 07:10 Display errors from backend 08:23 Display errors from Drush 10:01 Error display Drush command 11:40 DDEV overrides settings 13:22 View errors from recent log messages 14:28 Warning about using database logs ## WebProfiler 16:17 Install and configure WebProfiler 17:42 View error page using WebProfiler 19:02 Using WebProfiler ## Ignition Error Pages 21:58 Intro to Ignition 23:10 Composer install workaround 26:32 Questions: asking questions 29:16 Setting change when using WebProfiler with Ignition 30:54 Testing error page ## Print Variables 33:02 Print variables in Drupal 33:48 Turn off caching 34:11 Problem with print_r 34:52 Using dump() function 36:14 Using dd() function ## Using Devel 37:05 Intro to Devel 39:10 Using dpm() function 40:57 Using ddebug_backtrace() function ## Using Kint 42:18 Intro to Kint 43:38 Configure Kint in Devel 44:12 Configure Kint 45:56 Using Kint with dpm() function ## Log variables into DB Log 47:01 Save variable into DB log 48:58 Question: Drupal or WordPress ## Print variables in Twig 49:33 Print variables in Twig 51:14 Need Twig debugging on ## Xdebug 51:25 Intro to Xdebug 52:57 Enabling Xdebug in DDEV 54:18 Setup Xdebug in VS Code 58:04 Use Xdebug in VS Code 1:04:47 Use Xdebug in PhpStorm 1:07:41 Create custom module 1:09:02 Create custom controller 1:10:42 Example code to query and display titles 1:11:42 Print variables vs Xdebug 1:13:42 Use Xedbug in module 1:15:44 Add watches 1:17:28 Using Xdebug in Twig 1:20:24 Recap 1:20:52 Ending ## Postshow 1:22:02 Postshow

Download

1 formats

Video Formats

360pmp4152.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Display Errors and Print Variables in Drupal CMS | NatokHD