Phpstorm tutorials12/30/2023 ![]() Acquia Dev Desktop 2 as a local development *AMP-Stack for Drupal with PHP 5.5 used (higher PHP version should be supported too with corresponding higher XDebug version)įor use cases 3 and 4 I've chosen Drupal VM as a Vagrant-based full-featured enterprise development environment.Įven though the tutorials will be tested with the environments above, they should be applicable to different operating systems (Linux, Windows), albeit with slight changes.XDebug as a php debugging extension (2.2.3 compatible with PHP 5.5).PhpStorm as a development IDE (latest, v2016.2 to date).Google Chrome as a web browser (latest, v.Max OSX as an operating system (latest, v.The following environments will be used for the tutorials: Specifications of the environments I will be using You will find the details for each of these use cases in followup blog posts, coming shortly. vagrant or docker), debugged on hostĮach use case requires a different debugging setup I sorted them above according to complexity of this setup (first use case has the simplest complexity). CLI script launched from virtual machine (e.g.Web-based Drupal 8 application installed on virtual machine (e.g.CLI script installed on local PC, launched using drush command or Drupal console.Web-based Drupal 8 application installed on local development PC (e.g.To make these tutorials easier to follow, I am going to use the same implementation approach (with adjustments to the specifics of each environment). Some will use VMs, some will use local stacks. The truth is, we all use somewhat different setups. In this series, I will show you the basic steps on how to to set up debugging on a few commonly used developer environments. ![]() In addition, with modern tools like the PhpStorm and XDebug browser plugins, the debugging setup is already much simpler than it used to be. I think it's definitely worthwhile to invest time into a proper debugging setup, as the investment will definitely yield significant returns in the long run. With excuses like ”printing a variable works everywhere,” or ”I don't have the time to set up debugging,” they opt for the quick variable dump approach to dig deeper into these structures, similar to how we used to do it in earlier Drupal versions. However, a lot of people are ”scared” of the debugging setup. The object-oriented structure in Drupal 8 means we are working with very complex objects (and they are complex for a good reason). Some of these drawbacks are even more significant in Drupal 8.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |