Created
June 24, 2018 21:08
-
-
Save guiguiboy/5df3f6997b13dec804c0f2a087aa6bbc to your computer and use it in GitHub Desktop.
Configuring PHPSTORM debugger with ubuntu for CLI debugging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config xdebug PHP | |
------------------------ | |
xdebug.remote_enable=1 | |
xdebug.remote_host=127.0.0.1 | |
xdebug.remote_connect_back=1 | |
xdebug.remote_port="9000" | |
xdebug.idekey="PHPSTORM" | |
xdebug.remote_log=/tmp/xdebug.log | |
CLI | |
---- | |
export PHP_IDE_CONFIG='serverName=localhost' | |
export XDEBUG_CONFIG="idekey=PHPSTORM" | |
PHPSTORM | |
-------------- | |
Language & frameworks > PHP > Debug | |
break at first line | |
xdebug port 9000 | |
Language & frameworks > PHP > Servers | |
Name : localhost | |
Host : localhost | |
debugger xdebug | |
Do not forget to: | |
----------------- | |
Restart PHP FPM | |
Enable debugger in PHPSTORM | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment