4. Install XDebug
https://xdebug.org/download/historical version PHP 7.4 VC15 TS (64 bit) // XDebug version has to be compatible with PHP version copy php_xdebug-3.1.6-7.4-vc15-x86_64.dll in folder C:\PHP74\ext\ C:\PHP74\ext\php_xdebug-3.1.6-7.4-vc15-x86_64.dll
5. Install "PHP Debug" extension
In VSCode > Extensions tab > search for "PHP Debug" by XDebug
---- debugging --------
6. Copy files in folder:
C:\demo\demo.html
C:\demo\command.php
7. Start PHP server in the same folder
PS C:\demo> php -S localhost:8000 PHP 7.4.33 Development Server (http://localhost:8000) started
8. Open the folder with VSCode
VSCode > Open folder > C:\demo start [Run and Debug] > click create launch.json file select "PHP" from dropdown list
save configuration file.
select command.php
put breakpoint in command.php start [Run and Debug]
9. Open in browser
localhost:8000/demo.html demo.html triggers command.php and breakpoint is hit in VSCode.
2021-2025 Бял Ден ЕООД ,
email bqlden@yahoo.com ,
mobile 0889359737 .
bqlden.com се съхранява на
Zetta Hosting Solutions Llc. всички материали се разпространяват безплатно.