R
R
Ruslan Absalyamov2018-08-12 19:14:08
xdebug
Ruslan Absalyamov, 2018-08-12 19:14:08

Why is xdebugger not working?

I don’t understand why xdebug doesn’t work, maybe I missed something.
I replaced the port with xdebug because it was busy for me

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 127.0.0.1:9001          0.0.0.0:*               LISTEN      3037/java

Then I went to the /etc/php/7.0/mods-available/xdebug.ini file
and did
zend_extension=xdebug.so
xdebug.remote_autostart = 1
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_host = 127.0.0.1
xdebug.remote_log = /tmp/xdebug_remote.log
xdebug.remote_mode = req
xdebug.remote_port = 9002

Then I went to phpStorm in Languages ​​and made the following settings 5b705ba6e9cd8551821792.png
In the debug section, I changed the port xdebug port 9002
In the debug configuration
5b705c507e17a723797637.png5b705c63dbe8e927108230.png
And in /etc/hosts I have 127.0.0.1 blog.site
it But when I set a breakpoint and reach this point, the debugger does not stop for me

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question