mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 14:27:14 +01:00
d56e7982d0
dedd4b55fe
make node_helper.php safe for similar names
Docker image for Xdebug debugging
Build
Builds image with rector-xdebug
tag.
docker build . --tag rector-xdebug --file .docker/php-xdebug/Dockerfile
You can use --build-arg PHP_VERSION=7.4
to build with specific PHP version. Supported versions are: 7.3, 7.4, 8.0
Usage
Get into container (change ip address):
docker run -it --rm \
--entrypoint="" \
--volume $(pwd):/rector \
--env XDEBUG_CONFIG="client_host=172.16.165.1" \
--env PHP_IDE_CONFIG="serverName=rector" \
rector-xdebug bash
Do not forget to run rector binary with --xdebug
option.