Hướng dẫn cấu hình debug PHPStorm trên môi trường WSL (Windows Subsystem for Linux)
Huy Châu - July 26, 2019 -
PHPStorm, WSL, XDebug
Trong PHPStorm cấu hình PHP Remote
Cấu hình Path Mappings của project. (*) Nên sử dụng đường dẫn trực tiếp, không dùng symlink
Cấu hình XDebug
sudo nano /etc/php/7.1/apache2/php.ini
Thêm dòng
[xdebug] zend_extension=”/usr/lib/php/20160303/xdebug.so”
xdebug.remote_enable=1
xdebug.remote_connect_back=On
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9001
xdebug.idekey=PHPSTORM
Khởi động lại apache
sudo service apache2 restart
Cấu hình debugger trong PHPStorm
Hoàn thành !
