Skip to content

Instantly share code, notes, and snippets.

@guiguiboy
Created June 24, 2018 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guiguiboy/5df3f6997b13dec804c0f2a087aa6bbc to your computer and use it in GitHub Desktop.
Save guiguiboy/5df3f6997b13dec804c0f2a087aa6bbc to your computer and use it in GitHub Desktop.
Configuring PHPSTORM debugger with ubuntu for CLI debugging
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