Home > Blockchain >  How to debug PHP using VSCode IDE in Ubuntu
How to debug PHP using VSCode IDE in Ubuntu

Time:11-28

I need to debug PHP code using VS Code IDE. We can debug PHP using Xdebug Wizard Instruction for Php 8.1 in Ubuntu Follow above Instruction which one you will getting from php extension_dir path using cli

OR write <?php phpinfo() ?> in your php file then run that php file & found out extension_dir in your output page of phpinfo.

Step 5:- Restart your Server (Apache).

Step 6:- Install start debug mode in VS code to listen for Xdebug

Now, All Done.


for referece I share other source urls

refer enter image description here

& for check Xdebug works properly for CLI run php -r "xdebug_info();" in cli.

enter image description here

  • Related