IntelliJ IDEA中的PHP调试

Łuk*_*oda 2 php debugging drupal xdebug intellij-idea

好吧,我可能很愚蠢,但我不能让它发挥作用.

设置是:

  • Ubuntu的
  • 的Apache2
  • Xdebug的
  • IntelliJ IDEA 11.1.3终极版
  • IntelliJ IDEA PHP插件

xdebug已安装.

我想调试Drupal站点,在我的本地机器上,项目在这里:

/var/www/luken/my-site
Run Code Online (Sandbox Code Playgroud)

和URL在这里:

http://localhost/luken/my-site
Run Code Online (Sandbox Code Playgroud)

因为我无法从现有源创建项目,所以我从头开始创建新项目(Web模块).现在的问题是,如果我正在运行"PHP脚本"的配置 - 调试器工作.但是,如果我尝试使用PHP Web应用程序的配置(因此项目将在浏览器中打开),它无法连接到调试器.我尝试了很多东西和不同的映射,但显然我错过了一些愚蠢的东西.上面的设置应该如何配置?

Łuk*_*oda 8

当然.在发布问题后几分钟我找到答案,无论之前的调查时间如何,但这里是:

我读了一些你不需要配置xdebug的错误信息.实际上,您需要修改/etc/php5/conf.d/xdebug.ini.我在那里补充说:

xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
Run Code Online (Sandbox Code Playgroud)

我在关于配置Netbeans的文章中读到了这一点,并且工作正常.确切地说:

xdebug.remote_enable=1
Run Code Online (Sandbox Code Playgroud)

^此行仅是必需的.