Skip to content

gdejong/advent-of-code-2020

Repository files navigation

advent-of-code-2020

CLI

Build:

docker-compose build

Run:

docker-compose run -w /opt/project php-cli php cli.php day1

Run with debugger:

docker-compose run -w /opt/project -e XDEBUG_SESSION=xdebug_is_great -e PHP_IDE_CONFIG=serverName=advent-of-code php-cli php cli.php day2

Xdebug

Make sure to set the Xdebug port to 9003. (won't be needed when PHPStorm 2020.3 drops)

In xdebug.ini change xdebug.client_host to the IP address of your computer.

In PHPStorm go to Settings > Languages & Frameworks > PHP > Servers and create a new server called advent-of-code. Setup the path mapping from your local directory to /opt/project.

About

If you enjoy the Advent of Code please consider donating to keep the project running.

Topics

Resources

License

Stars

Watchers

Forks