To remotely Debug php, you must first ensure that zenddebugger is correctly installed on the server. You can use phpinfo to view the information. The dummy. php file is located in the root directory of the server. In addition, you also need to change the php. ini of the server? Zend_debugger.allow_hosts127.0.0.1zend_debugger.expose_remotelyalways change to ze remote debugging php
First, make sure that zend debugger is correctly installed on the server. You can use phpinfo to view the information. The dummy. php file is located in the root directory of the server. In addition, you also need to change the php. ini of the server
?
Zend_debugger.allow_hosts = 127.0.0.1
Zend_debugger.expose_remotely = always
Change
Zend_debugger.allow_hosts = 127.0.0.1, 192.168.0.102
Zend_debugger.expose_remotely = always
?
Here, the newly added IP address is the IP address of the client. make sure that the two machines are pinged and disable the firewall or something. The zend debugger port is used for transmission.
?
Then we use aptana as the debugging tool. My aptana has been installed with pdt and zend debugger plugin.
First, open preference and create a new server in the php server. The address is the server address, for example, http: // 192.168.0.101.
Select another php page, right-click a debug as option, select debug configuration, select the new one in the php server column, and then click configure of the php server. There is a path mapping in it. In the first column, write the folder of the file to be debugged on the server, for example, d:/debugtest/. Note that this path is the server path and cannot be entered as your own. Select the corresponding folder of your workspace. Make sure that the two directories correspond, and the code should be the same.
Then let's debug it. Adjust the url. if the url fails, change the value of debughost after the url address to 192.168.0.102. Refresh the page and you can debug it.