/wordpress-docker-vscode-xdebug-boilerplate

A boilerplate to debug Wordpress using Docker on VSCode

Primary LanguageDockerfile

Wordpress Docker xDebug Boilerplate

This boilerplate is to debug Wordpress websites using Docker and VSCode

Usage

Make sure Docker is running and the PHP Debug extension for VSCode is installed

  1. Run the docker instance
$ docker-compose up
  1. Open http://localhost:8000

  2. Open the debugger tab on the sidebar and run Listen for XDebug

  3. Set anywhere in your PHP files a breakpoint