Phpstrom and Xdebug for PHP single-step debugging

Source: Internet
Author: User

Don't talk nonsense, start straight.

First step: Install and configure Xdebug

  1. Installation
    The PHP version of Xdebug can be downloaded directly from the website: https://xdebug.org/download.php
  2. Configuration, the typical configuration is as follows:

    zend_extension= "xxxxx"//Xdebug Address

    Xdebug.remote_enable = On

    Xdebug.remote_connect_back = 1

    xdebug.remote_host= client_ip_address//Client IP address

    Xdebug.remote_port = 9000//port number, phpstorm default is 9000, here need and client port number corresponding

    Xdebug.idekey = phpstorm//This needs to be consistent with client configuration

Step Two: Configure Phpstorm

  1. file-"settings-" Languages & Frameworks-"PHP-" Debug



  2. Open the Phpstorm main panel and configure the debug parameters as shown







  3. Turn on Phpstorm debug

Third, set breakpoints and enjoy it!

Phpstrom and Xdebug for PHP single-step debugging

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.