Last active
November 14, 2022 11:10
-
-
Save cozingo/c1fff80c080c222d37970f0c65624ea8 to your computer and use it in GitHub Desktop.
xdebug
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
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 |
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
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 |
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
[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