PhpStorm + Xdebug + CakePHP

时间:2017-10-04 17:02:12

标签: cakephp phpstorm xdebug

我使用CakePHP框架将一个新项目编码到PhpStorm中。我已经按照gist安装了Xdebug但是我无法调试我的代码。

如果我在PhpStorm中将验证脚本运行到Run >> Web Server Debug Validation,我每次都会看到以下内容

PhpStorm Web Server Debug Validation

我无法理解警告“远程调试未启用”,因为它已在我的php.ini中配置为启用

有什么建议吗?

更新&解决方案

gist对我来说不正确! 我以这种方式编辑了/etc/php/7.0/cli/conf.d/20-xdebug.ini

zend_extension=xdebug.so
xdebug.remote_enable = 1
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM
xdebug.max_nesting_level = 512
xdebug.file_link_format = phpstorm://open?%f:%l

然后在运行配置中我放了一个PHP Web Application配置

0 个答案:

没有答案