PHP breakpoint Debugging method in Vscode!

Source: Internet
Author: User
Tags php debug

1. Open Vscode Preference setting, add "Php.validate.executablePath": "D:\\newxampp\\php\\php.exe",

Note: This represents the actual path of your PHP installation, depending on the location of each individual installation.

2, Vscode install PHP debug this plug-in and reload.

3, https://xdebug.org/wizard.php Open this official website to enter their own phpinfo information, draw my xdebug download files and placement path!

4. Open Php,int to add the following content

[xdebug]xdebug.remote_enable = 1xdebug.remote_autostart = 1xdebug.profiler_output_dir= "D:\phpStudy\PHPTutorial\tmp \xdebug "xdebug.trace_output_dir=" D:\phpStudy\PHPTutorial\tmp\xdebug "zend_extension = D:\phpStudy\PHPTutorial\php \php-7.0.12-nts\ext\php_xdebug-2.6.1-7.0-vc14-nts.dll

Note: Be sure to add the first two, otherwise you cannot debug!!!

In this way, access to the relevant files through the browser to enter the breakpoint!

PHP breakpoint Debugging method in Vscode!

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.