Install the plug-in php-debug.
Find the readme_en.txt
file in the xampp
installation directory and check the specific version of php
PHP 5.6.30 (VC11 X86 32bit thread safe) + PEAR
.
Download the corresponding version of php
in xdebug. PHP 5.6 VC11 TS (32 bit) (SHA256: cec798666b069f8c2d5b44222c878095d3d97c456ef94a79e0d6f2bd74658e41)
php_xdebug-2.5 .4-5.6-vc11. dllCopy to the
C:\xampp\php\ext directory.
C:\xampp\php, find
php.ini, and configure it according to the following list. After the configuration is completed Restart
apache.
max_execution_time=3000
## at the end #
[XDebug]zend_extension = "C:\xampp\php\ext\php_xdebug-2.5.4-5.6-vc11.dll" xdebug.remote_enable =1xdebug.remote_autostart = 1
Add"php.validate.executablePath": "C:\\xampp\\php\ \php.exe"
.
Set a breakpoint in the file and manually open the corresponding page on the web page.
The above is the detailed content of How to call debug php using vscode. For more information, please follow other related articles on the PHP Chinese website!