![]() We’ll be using Xdebug 3 because it is compatible with PHP 8.1 (more on this below) Note that PHP-Debug’s GitHub page has example php.ini settings for Xdebug 2. There is one dependent package that is required ATOM-DEBUG-UI. I ended up disabling the optional packages IDE-PHP and ATOM-IDE-UI which caused errors as they seemed to be out of sync with PHP-Debug and didn’t seem to offer any extra functionality worthy of spending time investigating the error. You will be asked to install several other dependent packages. ![]() I assume that you have the latest Atom installed. It has (contributed) plugin packages that together can provide IDE-like functionality for many Drupal dev tasks. We also want a browser set up with the ability to switch Xdebug step tracing on and off for each http request it makes to the remote server.Ītom (developed by GitHub and contributors) is free of charge and a delight to use. The Xdebug client running on our host machine as an Atom plugin. The virtual Ubuntu Linux guest dev machineĪ connection between Xdebug running on the remote testing virtual server and Parallels Desktop providing the virtualisation for … MacOS (Monterey 12) as the host machine in which Atom is the Xdebug client and PHP Xdebug running in the guest virtual dev machine ![]() Xdebug 3 which has different, simpler php.ini settings than previously was the case in Xdebug 2 PHP 8.1 - (PHP 8.0 and later require Xdebug 3) (In the past I haven’t reliably been able to use Xdebug with Nginx and PHP-fpm) Server-sideĪpache 2.4.41 running with PHP-fpm and APCu cacheing on Ubuntu 20.04 Linux. I have the following items in my component stack. Providing that Xdebug is set uo on the dev server with the correct php.ini configuration, Atom can be set up as an Xdebug client really easily so I thought that I would record what is needed. ![]() “IDE” tasks I need to do are chiefly code editing with some debugging and inspection using Atom as an Xdebug client. We aim for Low Code site development, to do the minimum Drupal programming of custom modules and themes, but occasionally it is necessary for me to dust off the development tools and then try to remember what I was doing those months ago when I last had to. I hope it is useful to you and others with similar needs to mine. This is opinionated advice drawn from my experience with my simple use case. Atom’s docs and most web articles still refer to Xdebug 2 configuration and older versions of PHP rather than the current versions of both.Ītom is an excellent debugging client when connected to a remote Drupal (with Xdebug 3 and PHP 8.1) and sufficient for my Drupal dev needs. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |