Here at XenForo, we like to keep our development environments up-to-date and as useful as possible, and from time to time we include some of our findings in our online documentation.

macos-debugging.jpg

Recently, we've published an easy setup guide for a Windows-based development environment and today we've added a guide for building a very flexible macOS-based system.

Multiple, simultaneous PHP versions​


The macOS installation guide brings the ability to simultaneously run multiple versions of PHP with Xdebug without having to switch the active version.

This can be invaluable for developers who want to build new code with PHP 8, but also want to maintain add-ons written for legacy software like XenForo 1.5.

macos-php-versions.png

Step debugging with Xdebug​

Furthermore, we've provided setup instructions to get step debugging working with Visual Studio Code and Xdebug. If you're not already using Xdebug as part of your PHP development system, it's time to start!

While the guides describe step-debugging in VS Code, the principles can be applied to PhpStorm or any other step-debug-capable IDE.

Video guides​

Both the Windows and macOS guides can be found in the XenForo 2 Dev Docs, and have accompanying videos to help you through the setup process.

How to install Apache, MariaDB, ElasticSearch, MailHog, ImageMagick and three versions of PHP to run simultaneously under macOS

With opening the video you agree that your data will be transmitted to YouTube and that you've read the Privacy policy.


Install Apache, MySQL, PHP and Xdebug in just a few minutes

With opening the video you agree that your data will be transmitted to YouTube and that you've read the Privacy policy.




Written by XenForo - (Weiterlesen)
 
Zuletzt bearbeitet von einem Moderator: