Answer the question
In order to leave comments, you need to log in
PHPStorm and xDebug how to solve strange problem?
Hello! I've already broken my head and searched the entire Internet, but I did not find it.
Set up xdebug. (php7, mysql, apache2, laravel 5.3)
php -v in console shows "... with Xdebug v2.4.1".
I connect to phpstorm and as soon as I press "debug" the message all the time:
Waiting for incoming connection with ide key '11777'
php.ini:
zend_extension = /usr/lib/php/20151012/xdebug.so
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.remote_autostart=1
xdebug.profiler_enable=1
xdebug.profiler_output_dir="~/xdebug/phpstorm/tmp"
xdebug.idekey=PHPSTORM
Answer the question
In order to leave comments, you need to log in
Resolved the issue. Edited the wrong php.ini
/etc/php/7.0/apache2/php.ini
/etc/php/7.0/cgi/php.ini
/etc/php/7.0/cli/php.ini
Of these, you need /etc/php/ 7.0/apache2/php.ini
Find your php.ini
Find or add a section
[xdebug]
xdebug.idekey=PHPSTORM
https://www.youtube.com/watch?v=OlcsQ8TCU3A
Good tutorial, I set it myself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question