B
B
Boris Yakushev2017-07-15 01:06:10
PHP
Boris Yakushev, 2017-07-15 01:06:10

Xdebug remote server, phpstorm?

Good afternoon.
There is LAMP which is available from the web (ip). I set a breakpoint, turn on listening, add a session, go to ip - xdebug works fine.
But this option does not suit me completely, because. I want to debug requests from other users. I turn on vpn, breakpoint is on, wiretapping too, I add a session, go to ip and the page just loads.
Tell me, how to do something with listening enabled, breackpiont set, I worked out xdebug with VPN enabled / when switching to ip by a third-party user / server? Regardless of the fact that the session is not added.
Thanks everyone for the advice.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Koryukov, 2017-07-15
@MadridianFox

Here you need to play around with the xdebug settings in php.ini. Necessary:
Well, I think you can somehow configure phpStorm so that it ignores all debug connections except for the file you need.
All you have to do is wait for someone to visit the page you need.
But it will be strange, because. a real user will face the fact that the site is a hop, and has stopped loading. the storm, having caught the debug connection, will send a breakpoint to it.
However. This is strange, and doubly so.
First, the site must be in duplicate - one for development and one for users. The one that for users should not have xdebug, tk. it seriously affects performance.
Secondly, debug requests from users? What? What for?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question