When:
to
Room:
Room 2 (-2.33)
Tags:
devops, development & coding
Track:
SVG
m&b icon_new brand
coding & site building

Debugging techniques: the good, the bad, and the ugly

Debugging techniques: the good, the bad, and the ugly

Mauricio Dinarte (dinarcon), Wendy Baltodano (Baltowen)

Debugging is an essential skill for software development. Attend this workshop to learn how to debug and solve pesky coding issues.

Prerequisite
Understanding of PHP and basic Drupal development skills are expected to take full advantage of this training.

Outline
Drupal has grown to be a sophisticated PHP application. It is built on top of other open source projects like Symfony, Twig, Guzzle and more. This allows us to innovate without reinventing the wheel. At the same time, this make our code harder to debug as there are multiple layers involved.

In this workshop we will present multiple Drupal code examples with a variety of errors to flex your debugging techniques. Some will also let us peek beyond PHP into Drupal's database to have a better understanding of how Drupal sites are created.

A fully configured DDEV environment with all the tools will be provided for you to follow along.

Learning Objectives
You will learn about:

* Using a proper debugger like XDebug to troubleshoot issues.
* Leveraging IDE features and the command line to find where errors are coming from.
* Taking a peek at the database and knowing what to look for.
* Blowing up the project (temporarily) with a call to the good ol’ die() function.

Experience level
Intermediate