Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.21 KB

WordPressLocalDev.md

File metadata and controls

33 lines (23 loc) · 1.21 KB

The Local Development Environment

The supplied local development environment is dependent on Lando, and therefore on Docker. Lando provides WordPress, WP-CLI, xdebug, mailhog, phpmyadmin, etc.

The documentation about installing Lando has OS-specific instructions for installing Docker.

Setup xdebug in phpStorm

phpStorm xdebug config screenshot

  • Setup path mappings.
    • In preferences, find PHP servers.
    • Add appserver.
    • Map /wordpress to /app/wordpress
    • Map /php-packages to /app/php-packages
    • Map /wordpress/index.php to /app/wordpress/index.php
    • Map /mu-plugins to /app/mu-plugins
    • Map /mu-plugins/plugins/wordpress-plugin/wordpress-plugin.php to /app/mu-plugins/plugins/wordpress-plugin/wordpress-plugin.php
  • Turn on debug listening -- phone icon.

Links