: This article mainly introduces phpstom configuration remote debugging of php. if you are interested in the PHP Tutorial, refer to it. Phpdebug needs to be installed. I use the xdebug extension.
I have been using sublime for a long time. I recently switched to sublime, so I want to install the debug I want to install. I 've been tossing it for a few times on the company server, but it's just a strange thing, we have a holiday today. we have installed xammp on our computer and configured it... Then try to configure it on the remote server (in fact, the linux virtual machine on your computer)
1. confirm that php extension is installed in php (if not, you can install it in Baidu). after installation, there are many configuration items. I only need to write a few items to run them.
Vi/etc/php. d/15-xdebug.inizend_extension = xdebug. soxdebug. remote_enable = 1 # xdebug is enabled by default. remote_handler = "dbgp" xdebug. remote_host = "192.168.152.1" # ipxdebug of the local machine. remote_mode = "req"; xdebug. remote_connect_back = 1 # If you are not sure about your ip address, you can remove this comment from xdebug. remote_port = 9002 # This is the listener Port xdebug set by phpstom. collect_vars = On
2. download the project to the local device. I directly used the file-> settings-> Build, Execution, Deployment-> Deployment settings.
3. set the port for listening to the ide. There are two places
In the following figure, the port number must be consistent with the xdebug. remote_port set on the server.
4. fill in the ing between the server name and the following server and local files.
5. configure debug
Add a PHP Web Application and select the server set in step 4.
5. open the listener
6. select the debug configuration you just added and click the bug to run it ~~~
If it fails, the selinux of the server should be shut down.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.
The above introduces phpstom configuration remote debugging php, including some content, hope to be helpful to friends interested in PHP tutorials.