I need to debug PHP code using VS Code IDE. We can debug PHP using Follow above Instruction which one you will getting from
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).
Now, All Done.
for referece I share other source urls
& for check Xdebug works properly for CLI run
php -r "xdebug_info();"
in cli.