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!