Are you sure your IDE listens on the correct port?
Feb 6, 2022
2
Level 1
Xdebug doesn't work with Laravel Sail and PHP 8.1
Hi,
Xdebug doesn't work for me. Could not connect to debugging client.
- Sail Version: 1.13.1
- Laravel Version: 8.82.0
- PHP Version: 8.1.1
- OS: macOS 12.2
Steps To Reproduce:
- Add to the .env file:
SAIL_XDEBUG_MODE=develop,debug
-
Rebuild application's containers
-
Run an Artisan command with Xdebug
sail debug migrate
and...
Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (through xdebug.client_host/xdebug.client
Regards! :)
Please or to participate in this conversation.