使用 PhpStorm 调试 Symfony3

Symfony3 Debugging with PhpStorm

我有一个 symfony 项目,我使用 "bin/console server:run" 命令 运行 它。我需要在 Windows 调试项目!我正在使用 PhpStorm IDE。我已经下载了正确的 XDebug dll 并在 php.ini 文件中设置了正确的(我相信)设置。

zend_extension = "C:\xampp\php\ext\php_xdebug-2.4.0-5.6-vc11.dll"
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:\xampp\tmp"
xdebug.idekey=PHPSTORM

我已经在 IDE 中正确设置了 php 解释器,它检测到了 xdebug。我已经关注了这个article。我尝试了很多不同的 PhpStorm 配置但没有成功。使用 PhpStorm 从控制台调试 php 项目 运行 的正确方法是什么?它是远程调试吗?我该如何设置它?我应该设置一些映射还是其他什么?

我只需要安装xdebug,在php.ini文件中设置如下配置:

zend_extension = "C:\xampp\php\ext\php_xdebug-2.4.0-5.6-vc11.dll"
xdebug.remote_enable=1
xdebug.remote_autostart=1

并在IDE中配置php解释器。完成此配置后,调试在 PhpStorm 中开箱即用!只需点击"Start listening for debugging connections"图标即可。不需要设置任何调试服务器。