Skip to content

Instantly share code, notes, and snippets.

View vuau's full-sized avatar

Au Pham vuau

View GitHub Profile
@vuau
vuau / debug-php-with-vdebug-in-docker.md
Last active August 16, 2021 14:26
Debug PHP in Devilbox container with vdebug in vim

I use Devilbox to set up my development environment. Below is how I setup xdebug and debug PHP application in vim

Create configuration file, in host machine type these commands

cd [path_to_devilbox]/devilbox/cfg/php-ini-7.4
cp devilbox-php.ini-xdebug xdebug.ini

In xdebug.ini