DrDragoN
@DrDragoN
Программист

Как связать Xdebug с PHPStorm?

Здравствуйте!

Проблема состоит в следующем, что PHPStorm не может соединиться с xdebug. В лог падают ошибки:

I: Checking remote connect back address.
I: Checking header 'HTTP_X_FORWARDED_FOR'.
I: Checking header 'REMOTE_ADDR'.
I: Remote address found, connecting to xx.xx.xx.xx:9001.
W: Creating socket for 'xx.xx.xx.xx:9001', poll success, but error: Operation now in progress (29).
E: Could not connect to client. :-(
  • Вопрос задан
  • 1802 просмотра
Пригласить эксперта
Ответы на вопрос 1
Привет, если работаешь в Ubuntu то сделай так
sudo apt-get install php5-xdebug -y

sudo nano /etc/php5/mods-available/xdebug.ini

zend_extension=xdebug.so

xdebug.default_enable=1
xdebug.var_display_max_depth=6
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_autostart=1
xdebug.remote_log=/tmp/xdebug.log
xdebug.idekey="PHPSTORM"
xdebug.profiler_enable_trigger=1
xdebug.profiler_enable=0
xdebug.profiler_output_dir=/tmp/profiler
xdebug.show_local_vars=1
xdebug.overload_var_dump=1
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы