Phpstom configuration remote debugging php

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

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.