D
D
DragoN DragoN2017-04-07 09:38:24
PHP
DragoN DragoN, 2017-04-07 09:38:24

How to link Xdebug with PHPStorm?

Hello!
The problem is that PHPStorm cannot connect to xdebug. Errors appear in the log:
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. :-(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor Umansky, 2017-04-07
@Uman

Hello, if you work in Ubuntu, then do this

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

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question