Phpstom Configuring Remote Debugging PHP

Source: Internet
Author: User
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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.