Skip to content

Instantly share code, notes, and snippets.

View yi7non's full-sized avatar

yinon elbaz yi7non

View GitHub Profile
@yi7non
yi7non / flywheel-local-xdebug-vscode.md
Created May 24, 2020 17:55 — forked from Niq1982/flywheel-local-xdebug-vscode.md
WordPress debugging with XDebug on Flywheel Local & VSCode

Flywheel Local configuration

Flywheel Local has XDebug installed by default if you choose “Custom” instead of “Preferred” when setting up a new local environment. If you don’t know which your current site is running, you can detect it by going to ”Site Setup” tab. If you can change the PHP version there, you have the “Custom” environment running. If not, just export your site, import it back and choose “Custom”.

Now that we have the right environment, remember what PHP version you are running, open the right PHP settings file (for example /Local Sites/my_site/conf/php/7.0.3/php.ini) and add these lines in the [Xdebug] section:

xdebug.remote_enable=1
xdebug.remote_autostart=1

Save the php.ini and restart your site container in Flywheel to apply new settings.