The current phenomenon is that Phpstorm + xdebug can debug a Web service that connects to a virtual machine on my laptop, but not even on an online web host.
Wipe, previously also did not directly connected to the online host to debug, has been local debugging, this special situation on the rest of the dishes.
> got an all-nighter, tired to find out why.
The original xdebug is The local Phpstorm IDE is used as the server in the debugging process, and the host that the Web service runs is client!!!!
Then I set the Xdebug on the Web service to always accept all Debug Callback requests Xdebug.remote_connect_back = 1
No IP is specified so that the Web service in the virtual machine can be connected back to the Phpstorm in the notebook machine
But my online Web service host is going to connect my socket to my phpstorm through the fiber cat, through the router, and then to my phpstormide,
This debug back to the socket is directly truncated by the middle fiber cat.
During the debug process, C/s architecture, who is C., who is s, the idea of reverse the concept of the object sequence directly on the pit to die, I did not see too carefully xdebug the structure of the introduction, this time wiped. If Phpstorm is the C-end of the debug process, it's never going to waste my overnight.
Well, find the reason to solve the problem, the notebook directly attached to the fiber-optic cat, the fiber-optic cat set up the DMZ host for my Notebook, let my notebook accept the fiber-optic cat received all the port requests, so that the online Web service host can be back to the Phpstorm on my notebook (of course you can also set the port forwarding scheme )
Alas, those two days really depressed, hope that other people encounter similar problems can be less detours it. I'm not in the first, quack.
Troubleshooting a home network cannot remotely debug the configuration of PHP programs on foreign hosts