How to invoke debug PHP using Vscode

Source: Internet
Author: User
  1. Install the plugin php-debug.

  2. Locate the xampp file under the installation directory readme_en.txt to view php the specific PHP 5.6.30 (VC11 X86 32bit thread safe) + PEAR version.

  3. Download the php corresponding version of the plugin in Xdebug.PHP 5.6 VC11 TS (32 bit) (SHA256: cec798666b069f8c2d5b44222c878095d3d97c456ef94a79e0d6f2bd74658e41)

  4. Copy the download php_xdebug-2.5.4-5.6-vc11.dll to the C:\xampp\php\ext directory.

  5. Returns the parent directory, which C:\xampp\php , if found php.ini , is configured according to the following list and is restarted after the configuration is complete apache .

      • Modify the maximum execution time to 5 minutesmax_execution_time=3000

      • Add at the end

        [xdebug]zend_extension = "C:\xampp\php\ext\php_xdebug-2.5.4-5.6-vc11.dll"        xdebug.remote_enable = 1xdebug.remote_autostart = 1
  6. vscode``用户设置Added "php.validate.executablePath": "C:\\xampp\\php\\php.exe" .

  7. phpFile set breakpoints, manually open the corresponding page on the webpage.

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.