A short demonstration on how to set Xdebug breakpoints in Twig files using Xdebug and PhpStorm.
Up to this point we’ve only been working in PHP, debugging the PHP code for the Buggy plugin. If you followed along with the other videos then you were able to successfully remove the bugs in the plugin and from the control panel.
However, with PhpStorm, we can also debug Twig templates. PhpStorm added template language debugging for Twig and Blade in 2019. It’s a nice bonus when using PhpStorm and building sites in Craft CMS.