I have the following problem. I tried debugging with Visual Studio a PHP project with Xdebug and the phpmd plugin. In principle I would dare to say that it is well configured since I could debug without problems simple codes but when trying to debug a project with call to symfony gives the following error at a time of execution:
Unable to open 'Container.php': File not found (file: ///Users/idepazd/.vscode/extensions/ecodes.vscode-phpmd-1.0.4/phpmd/phpmd.phar/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Container.php).
My configuration file in the launch.json is:
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
]