Skip to content

agorden-ekino/phpstorm-xdebug-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Use Xdebug in PhpStorm with Docker

Developer Riding a Whale and shooting lasers from an old-school

2 + 2 = 4?

Is reality a simulation?
Were Mathematics created by the Illuminati so that you'd be bad at school?
Is the answer 42?
Or is there a tiny bug in this application?

Medium Article

Link to Medium Article

Installation

Build the image and run the container with the following commands:

docker build -t xdebug-phpstorm-docker . # Build the image
docker run -d --rm -p 8080:8000 -v $(pwd):/var/www/html --name xdebug-phpstorm-docker xdebug-phpstorm-docker # Run the container in the background
docker exec -it xdebug-phpstorm-docker composer install # Run composer to generate autoload files

In Browser

Go to the localhost

Container terminal

You can access the container's command line with:

docker exec -it xdebug-phpstorm-docker bash

Stop the container

docker stop xdebug-phpstorm-docker

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published