Skip to content

Instantly share code, notes, and snippets.

@cozingo
Last active November 14, 2022 11:10
Show Gist options
  • Save cozingo/c1fff80c080c222d37970f0c65624ea8 to your computer and use it in GitHub Desktop.
Save cozingo/c1fff80c080c222d37970f0c65624ea8 to your computer and use it in GitHub Desktop.
xdebug
export XDEBUG_CONFIG="remote_enable=1 remote_mode=req remote_port=9000 remote_host=127.0.0.1 remote_connect_back=0"
php /path/to/script.php
For Windows:
PHP_IDE_CONFIG=serverName=push-service.lc
sudo apt-get install php-xdebug
zend_extension="/usr/lib/php/20151012/xdebug.so"
php.ini:
zend_extension="/opt/lampp/lib/php/extensions/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.idekey=PHPSTORM
File->Settings->Languages&Frameworks->PHP
select proper php language level
add new cli interpreter as /opt/lampp/bin/php
Set the url with ?XDEBUG_SESSION_START=PHPSTORM and set a header Cookie: XDEBUG_SESSION_START=PHPSTORM
[xdebug]
zend_extension=xdebug.so
xdebug.mode=debug
xdebug.client_host=127.0.0.1
xdebug.client_port=9000
xdebug.idekey=PHPSTORM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment