Php 如何使用Netbeans调试Symfony3?

Php 如何使用Netbeans调试Symfony3?,php,netbeans,symfony,xdebug,Php,Netbeans,Symfony,Xdebug,我无法用Netbeans调试Symfony 3 我执行了以下步骤: 1) 我在ubuntu上安装了php5-xdebug 2) 我修改了php.ini文件,如下所示: zend_extension="/usr/lib/php5/20121212/xdebug.so" xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=127.0.0.1 xdebug.remot

我无法用Netbeans调试Symfony 3

我执行了以下步骤:

1) 我在ubuntu上安装了php5-xdebug

2) 我修改了php.ini文件,如下所示:

zend_extension="/usr/lib/php5/20121212/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp 
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1 
xdebug.remote_port=9000
xdebug.max_nesting_level=300
3) 我重新启动了apache

4) 在Netbeans上,我设置运行配置->高级->不打开Web浏览器

5) 我为Firefox安装了easy Xdebug插件

6) 我使用控制台命令php-bin/console-server:start启动应用程序

7) 我使用Netbeans将断点放在控制器操作上

8) 我开始用Netbeans进行调试

9) 我在url上搜索

Q-页面将正常加载,调试不会在断点上进行。我错在哪里


谢谢

要使用PHP内置服务器调试应用程序,请执行以下步骤:

  • 在选项卡“项目”中,右键单击要调试的项目
  • 在“类别”列表中选择“运行配置”
  • 在“运行方式”选择框中,选择“PhP内置Web服务器(在内置Web服务器上运行)”
  • 添加主机名和端口,然后按“确定”

  • 使用NetBeans IDE 8.2完成后,您将Apache的httpd服务器(3)与内置的php http服务器(6)混合使用。好的,现在我只使用Apache,如图所示。现在使用Netbeans进行调试工作,谢谢!