[初心者]VisualStudioCode(vscode)で、xdebugを使ってphpをデバッグしようとしているのですが、 画面左にあるListen for Xdebugを選択して実行してもデバッグしてくれません。どうすればよいのでしょうか?なお、添付の写真の画面右上にある虫マークでDebug PHP Fileを選択すると先頭で止まりデバッグしてくれます。(xdebugでないように思いますが) コピペ(文字数の関係で一部省略) PHP 8.0.30 (cli) ( ZTS Visual C++ 2019 x64 ) Zend Engine v4.0.30 Zend OPcache v8.0.30 Xdebug v3.3.2 php.iniは [XDebug] zend_extension = "C:\xampp\php\ext\php_xdebug.dll" xdebug.client_host=127.0.0.1 xdebug.client_port=9003 xdebug.idekey = "vscode" xdebug.mode=debug xdebug.profiler_append = 1 xdebug.mode=trace xdebug.start_with_request=Yes xdebug.output_dir= "C:\xampp\php\tmp" xdebug.discover_client_host = 1 xdebug.log="C:\xampp\php\tmp\xdebug_log" launch.jsonは以下 "version": "0.2.0", "configurations": [ { "name": "Listen for Xdebug", "type": "php", "request": "launch", "port": 9003 }, { "name": "Launch currently open script", "type": "php", "request": "launch", "program": "${file}", "cwd": "${fileDirname}", "port": 0, "runtimeArgs": [ "-dxdebug.start_with_request=yes" ], "env": { "XDEBUG_MODE": "debug,develop", "XDEBUG_CONFIG": "client_port=${port}" } }, { "name": "Launch Built-in web server", "type": "php", "request": "launch", "runtimeArgs": [ "-dxdebug.mode=debug", "-dxdebug.start_with_request=yes", "-S", "localhost:0" ], "program": "", "cwd": "${workspaceRoot}", "port": 9003, "serverReadyAction": { "pattern": "Development Server \\(http://localhost:([0-9]+)\\) started", "uriFormat": "http://localhost:%s", "action": "openExternally" } } ] }
PHP