Vscode (Visual Studio Code) How to configure the PHP development environment (tested) _ Programming Development _ Software Tutorial

Source: Internet
Author: User
Tags php development environment
Visual Studio Code is a lightweight and powerful editor that supports Windows,os x and Linux. Built-in JavaScript, typescript, and node. JS support, and a rich plug-in ecosystem to support C + +, C #, Python, PHP and more in other languages by installing plugins

This article is for you to share the specific steps of Vscode to configure the PHP development environment, through the script of the small-compiled test

Preparatory work:

1. Download the visual Studio Code

2. Download XAMPP, because the package is easy, for personal use is very convenient

3. Download Xdebug, remember to correspond to PHP version, otherwise invalid

Steps:

1. Installing PHP-related plugins in visual Studio code

2. Configure PHP Paths in Preferences

3. Put the xdebug DLL in the PHP related directory

4. At the end of the php.ini, add the following code

[Xdebug]

zend_extension= "C:/xampp/php/ext/php_xdebug-2.5.5-7.1-vc14.dll"

xdebug.remote_enable = 1

Xdebug.remote_autostart = 1

5. Finally, you can set the breakpoint debugging in the Vscode, note, must be opened in the form of folders to successfully set breakpoints debugging, a single file is invalid

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.