Need to install Phpdebug, I'm using the xdebug extension
Before has been used sublime, recently replaced, so want to install before the debug installed, in the company server toss a few times, are inexplicable wonderful did not fix, today's holiday, installed on their own computer xammp, and then the well-equipped ... Then try to configure it on the remote server (actually the Linux virtual machine on your own computer)
1. Confirm php installed PHP extension, (if not installed, can Baidu under how to install), after the installation of the configuration, there are many configuration items, I only write a few, can run up on the line
vi /etc/php.d/15-xdebug.inizend_extension=xdebug.soxdebug.remote1#默认开启xdebug.remote"dbgp"xdebug.remote"192.168.152.1"#本地机器的ipxdebug.remote"req";xdebug.remote_connect_back = 1 #不确定自己ip的话,可以把这项注释去掉xdebug.remote_port 9002#这个是phpstom设定的监听的端口xdebug.collect_vars = On
2. Download the project locally, I am directly using the File->settings->build,execution,deployment->deployment settings
3. Set the IDE listening port, there are two places
In the picture below, note that the port number is consistent with the xdebug.remote_port of the server settings.
4. Fill in the server name and the following server and local file mappings
5. Setting the Debug Configuration
Add a PHP Web application, select the server that is set up in the fourth step
5. Turn on monitoring
6. Select the Debug configuration you just added, click the bug to run it ~ ~ ~
If you fail, the server's SELinux shuts down, it should be OK.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
The above describes the Phpstom configuration remote debugging PHP, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.