How to call and Debug php using vscode-php Tutorial

Source: Internet
Author: User
Install the php-debug plug-in. Find the readme_en.txt file in the xamppinstallation directory and check the php version PHP5.6.30 (VC11X8632bitthreadsafe) + PEAR. Download the php plug-in xdebug. PHP5.6VC11TS (32bit) (SHA256: cec798666b069f8c2d5b44222c878095d3d97c456ef
  1. Install the php-debug plug-in.

  2. FindxamppUnder the installation directoryreadme_en.txtFile, viewphpSpecific versionPHP 5.6.30 (VC11 X86 32bit thread safe) + PEAR.

  3. Download from xdebugphpPlug-ins of the corresponding version.PHP 5.6 VC11 TS (32 bit) (SHA256: cec798666b069f8c2d5b44222c878095d3d97c456ef94a79e0d6f2bd74658e41)

  4. Downloadphp_xdebug-2.5.4-5.6-vc11.dllCopyC:\xampp\php\extDirectory.

  5. Returns the parent directory, that isC:\xampp\php, Findphp.ini, Configure according to the following list and restart after the configuration is complete.apache.

    • Modify the maximum execution time to 5 minutes.max_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 ''user settingsAdd"php.validate.executablePath": "C:\\xampp\\php\\php.exe".

  7. phpSet a breakpoint for the file, and manually open the corresponding page on the webpage.

The above describes how to call and Debug php using vscode. For more information, see other related articles in the first PHP community!

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.