G
G
Glory2021-10-17 16:15:59
PHP
Glory, 2021-10-17 16:15:59

How to debug an incoming connection from another computer in phpstorm?

The php program accepts a normal get request.
I set up the debugger in the browser, and by executing the
lara-1c.local/bitrix/admin
path through the browser , the program stops at the selected break point in the debugger.

But if you run the same request in a browser from another computer on the network, the result will appear on the screen, but
the debugger will not catch the incoming connection. What can be wrong? tell me how to fix this?

In theory, the debugger works fine for me. in

[xdebug]
zend_extension="/usr/lib/php/20190902/xdebug.so"
xdebug.remote_autostart=1
xdebug.default_enable=1
xdebug.remote_port=9001
xdebug.remote_host=192.168.0.8
xdebug.remote_connect_back=1
xdebug.remote_enable=1
xdebug.idekey=PHPSTORM


Maybe something else needs to be fixed in nginx? but the program is running.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Verkan, 2021-10-30
@Verkan

In short
, set up xdebug on the server.
Forward the port from the server to your PC.
Specify connection data in phpStorm settings.
But off. documentation https://www.jetbrains.com/help/phpstorm/remote-deb...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question