Use vs code to write PHP and debug

Source: Internet
Author: User

Originally from: http://www.cnblogs.com/CLR010/p/5276077.html

1, the first official website download vs code address: https://code.visualstudio.com/

2, install the extension Php-debug installation procedure See Https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug

Specifically: (ctrl+p) in the text box input "ext install Php-debug" Enter and so on will appear this extension

In the lower right corner there is a download button (for already downloaded so show X)

3. Configure user settings

Pop-up the following window and add "Php.validate.executablePath": "C:/wamp/bin/php/php5.5.12/php.exe" to the

4. Configure Debug

Select Listen for Xdebug

(Configuration file contents do not need to move)

5. Start Wampserver

6. Open the php file, press F9 on the specified line to set the breakpoint and start debugging

7, in the browser access can

Use vs code to write PHP and debug

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.