无法让 Xdebug (WAMP) 与 Atom 一起工作



我在本地使用WAMP,使用Atom作为我的编辑器。我想使用 Xdebug,所以我在 Atom 中安装了 php-debug 包。在Chrome中,我已经安装了插件" Xdebug Helper",以使用一个简单的按钮关闭和打开Xdebug,并且我还在设置中添加了IDE键xdebug-atom

我在 php.ini 中为 xdebug 添加了这些行:

zend_extension ="c:/wamp/bin/php/php5.6.25/zend_ext/php_xdebug-2.4.1-5.6-vc11.dll"
xdebug.remote_enable=1
xdebug.idekey = "xdebug-atom"
xdebug.remote_host=127.0.0.1
xdebug.remote_connect_back=1    
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart=false

在 Atom 中,我在 config.cson 中添加了这些行:

  "php-debug":
    ServerAddress: "127.0.0.1"
    ServerPort: 9000
    currentPanelHeight: "292px"
    currentPanelMode: "bottom"

我可以在 Atom 中切换 Xdebug 窗口,也可以在我的 php 脚本中设置断点。但是当我重新加载我的 Web 应用程序时没有任何反应,我已经尝试更改所有设置并多次重新启动 Atom 和 WAMP。

谁能看出我做错了什么?

最后我做对了。在 php 中使用这些设置.ini连接工作:

zend_extension ="c:/wamp/bin/php/php5.6.25/zend_ext/php_xdebug-2.4.1-5.6-vc11.dll"
xdebug.remote_enable = On
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir ="C:/wamp/tmp"
xdebug.show_local_vars=0
xdebug.remote_autostart = 0
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000

最新更新