Skip to content

viktorprogger/xdebug-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A sample project for xDebug usage

To get the project up and working, do these things:

  1. Set up PhpStorm
  2. Create a .env file with the following content:
    XDEBUG_MODE=debug
  3. Set a breakpoint in the index.php file
  4. Enable xDebug connection listening in PhpStorm
  5. If you are using Windows or macOS, remove extra_hosts from docker-compose.yml
  6. Run the docker-compose up -d command. We don't need to start services, but we need to create a network. The next command will not work without it.
  7. Run the docker-compose run --rm php php index.php command. Before the first launch, the container image will be built, this will take a few minutes.
  8. Voila, script execution is stopped at your breakpoint!

Full description is available in the blog post.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published