-
Notifications
You must be signed in to change notification settings - Fork 381
Setup Xdebug
ucan-lab edited this page Jul 5, 2022
·
1 revision
$ echo APP_BUILD_TARGET=development-xdebug > .env
$ docker compose build app
$ docker compose down
$ docker compose up -d
$ docker compose exec app php -v
PHP 8.1.7 (cli) (built: Jun 23 2022 07:57:40) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.7, Copyright (c) Zend Technologies
with Xdebug v3.1.5, Copyright (c) 2002-2022, by Derick Rethans
$ docker compose exec app php artisan -V
Laravel Framework 9.19.0
Add CLI Interpreter



Name: docker-laravel Host: localhost Port: 9003 Debugger: XDebug Use path mappings: ✅


Name: docker-laravel Filter debug connection by IDE key: ✅ Server: docker-laravel IDE key: PHPSTORM