1.以下のファイルがあることを確認
xampp\php\ext\php_xdebug.dll
※なければ、すみませんが他の方の記事をご参照下さい
2.xampp\php.iniに以下を追加
[XDebug]
zend_extension = “C:\xampp\php\ext\php_xdebug.dll”
xdebug.remote_autostart = 1
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = “c:\xampp\tmp”
xdebug.remote_enable = 1
xdebug.remote_handler = “dbgp”
xdebug.remote_host = “127.0.0.1”
xdebug.remote_log=”c:\xampp\tmp\xdebug.txt”
xdebug.remote_port = 9000
xdebug.trace_output_dir = “c:\xampp\tmp”
xdebug.remote_cookie_expire_time = 36000
3.PHP Debugのインストール
1.VSCode左メニューの「拡張機能」をクリック

2.「PHP Debug」で検索して、PHP Debugの「インストール」ボタンを押下

4.apacheとVSCodeを再起動で完了
5.雑談
XDebugを有効にしたまま開発を行うと重すぎるので
普段は[XDebug]の記述をしていないphp.iniで起動して
ブレークポイントを設定したい時のみ[XDebug]の記述ありphp.iniで起動しなおしてデバッグしています。