phpstorm xdebug with a symfony2 project

前端 未结 5 1192
無奈伤痛
無奈伤痛 2021-02-04 11:52

I am trying to debug a symfony2 application with xdebug and phpstorm.

My local development environment is Ubuntu 14.04 with apache2 and Xdebug version is 2.2.7

I

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-04 12:16

    It was a mapping problem. The following are the steps which did the trick

    1. Disable path mapping under Settings > Languages & Frameworks > PHP > Servers > uncheck "Use path mappings
    2. Start debugging
    3. The famous “Remote file path ‘path/to/script/on/the/server.php’ is not mapped to any file path in project“ finally appears
    4. Then I could follow the Troubleshooting section in official guide setting up path mappings

    Hope this helps to anyone else

提交回复
热议问题