Error in debug with php in Visual Studio Code

0

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

    }

]
    
asked by Iván 12.04.2018 в 09:24
source

0 answers