K
K
klinnov2016-08-27 03:37:46
PHP
klinnov, 2016-08-27 03:37:46

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

Settings windows in a storm:
d7965e0f434f4285bcc06aa832687bc3.png56f68cc54bc44c2a96a9ffe4e5f1de76.png866bc1dc648a4c3ba8f576b08b41751e.png22685f70ea5a4a4aa339ebc87e8fa562.pnga6d24a11b30e4d7382a4ab81ec67a05a.png9cabd1e552a24ec2b2e0f50ca5757d4e.png
Sometimes in the event feed in a storm the message is:
3:39 Cannot accept external Xdebug connection: Cannot evaluate expression 'isset($_SERVER['PHP_IDE_CONFIG'])'
What am I doing wrong? Thank you!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
klinnov, 2016-08-27
@klinnov

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

P
Philipp, 2016-08-27
@zoonman

Find your php.ini
Find or add a section

[xdebug]
xdebug.idekey=PHPSTORM

B
Boris Yakushev, 2016-08-27
@za4me

https://www.youtube.com/watch?v=OlcsQ8TCU3A
Good tutorial, I set it myself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question