Skip to content

Latest commit

 

History

History
71 lines (43 loc) · 1.41 KB

phpstorm-macosx.md

File metadata and controls

71 lines (43 loc) · 1.41 KB

Configure PHPStorm with MacOS

Inspired from this following links :

Edit PHP configuration

PHP CLI Interpreter

Add a PHP interpreter

Add PHP CLI Interpreter

Configure PHPUnit

PHPUnit

Add test configuration

PHPUnit Config

PHPUnit Demo

PHPUnit Demo

Configure XDebug

Edit etc/php.ini file

Add this following lines :

[xdebug]
xdebug.remote_host = 10.254.254.254
xdebug.remote_port = 9000
xdebug.remote_autostart=1
xdebug.idekey = PHPSTORM
xdebug.remote_enable = 1
xdebug.remote_connect_back = 0
xdebug.profiler_enable = 1

Check Debug section

Xdebug

Add a debug server

XDebug Server

Configure XDebug Proxy

Create an IP Alias :

sudo ifconfig en0 alias 10.254.254.254 255.255.255.0

Xdebug Proxy

To delete an IP Alias :

sudo ifconfig en0 -alias 10.254.254.254

XDebug Demo

XDebug Demo