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
Install the php-debug plug-in.
FindxamppUnder the installation directoryreadme_en.txtFile, viewphpSpecific versionPHP 5.6.30 (VC11 X86 32bit thread safe) + PEAR.
Download from xdebugphpPlug-ins of the corresponding version.PHP 5.6 VC11 TS (32 bit) (SHA256: cec798666b069f8c2d5b44222c878095d3d97c456ef94a79e0d6f2bd74658e41)
Downloadphp_xdebug-2.5.4-5.6-vc11.dllCopyC:\xampp\php\extDirectory.
Returns the parent directory, that isC:\xampp\php, Findphp.ini, Configure according to the following list and restart after the configuration is complete.apache.
Vscode ''user settingsAdd"php.validate.executablePath": "C:\\xampp\\php\\php.exe".
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!