Over the years, I've been shocked at the number of colleagues and fellow Drupal developers who don't use a debugging tool like Xdebug. These developers have been 'var_dump'ing and 'dpm'ing their entire career, and may not be aware of the immense time-save, clarity, and utility that a debugger/profiler provides. In this session, I'll go over general Xdebug pros and cons, give real-world examples of Xdebug usage in a Drupal 8 environment, and show some neat tips and tricks developers can use in popular IDEs.
In this session, I'll cover:
- Pros and cons of using a debugger over old school methods
- Why Xdebug is great for Drupal developers
- General installation instructions for local development
- Anecdotal examples of where Xdebug was vital in my day-to-day
- Live demos of how I'd solve common problems using Xdebug.
My live demos will use my typical stack (Docksal/Xdebug/PHPStorm), but generally apply to all environments and IDEs.
My primary audience includes new Drupal developers and developers who haven't made the leap to Xdebug, but even current users of Xdebug will probably be able to pick up tips or features they didn't know previously.
Non-xdebug users should leave the session with an immediate desire to go install it and start debugging the smart way!