我正在尝试使用 xdebug 和 phpstorm 调试 symfony2 应用程序。
我的本地开发环境是Ubuntu 14.04 with apache2,Xdebug版本是2.2.7
我在另一个 php (不是 symfony2)项目上使用了以下指南:
https://www.jetbrains.com/phpstorm/help/configuring-xdebug.html https://www.jetbrains.com/phpstorm/help/configuring-xdebug.html
https://confluence.jetbrains.com/display/PhpStorm/Zero-configuration+Web+Application+Debugging+with+Xdebug+and+PhpStorm https://confluence.jetbrains.com/display/PhpStorm/Zero-configuration+Web+Application+Debugging+with+Xdebug+and+PhpStorm
当我执行 bookmarlet 来设置 cookie 并开始调试这个 symfony2 项目时,phpstorm 检测到传入连接(我接受),但没有其他任何反应。它不会在任何断点处停止。
我有 symfony2 phpstorm 插件。我尝试禁用它,但也没有得到任何结果。
This answer https://stackoverflow.com/a/16639453/844451对我来说看起来不错,但这也不是窍门
我尝试的最后一件事是更改服务器调试配置,禁用路径映射。这样 phpstorm 开始调试,但它在 app_dev.php 文件中中断,而不是我设置的任何断点。
我被困在这里,任何想法将不胜感激
UPDATE
更多我没有提到的信息:
- 我正在使用 Firefox 我正在尝试调试开发环境
- 断点位于我自己的控制器的操作中,而不是供应商的控制器中。
UPDATE
这是我的 xdebug 配置
[XDebug]
zend_extension="/usr/lib/php5/20121212/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_port="9000"
xdebug.profiler_enable=1
xdebug.profiler_output_dir="<AMP home\tmp>"