phpstorm xdebug with a symfony2 project

前端 未结 5 1194
無奈伤痛
無奈伤痛 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:27

    If you find that PHPStorm keeps asking for mappings try and create a mapping at the highest level of the project as @stanhope mentioned, that should be enough.

    My first mapping was incorrectly set to the app_dev.php file in /web which meant that the IDE kept asking me for mappings to files in vendor directories.

    e.g. /vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Response.php

提交回复
热议问题