我正在使用wamp 2.0并尝试为php安装XDebug扩展.我已经按照这里写的所有步骤http://wiki.netbeans.org/HowToConfigureXDebug#How_to_configure_xdebug_with_WAMP 但仍然无法正常工作.
有任何建议如何解决这个问题?
Der*_*ick 44
请按照http://xdebug.org/find-binary.php上的说明进行操作
欢呼,德里克
小智 5
按照Derick 提到的http://xdebug.org/find-binary.php 上的说明进行操作,但是在 Wampserver 3.0.0 上配置 xdebug 时,我还必须将以下代码添加到我的 php.ini 中。
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=0
xdebug.profiler_output_dir = C:\wamp\tmp
Run Code Online (Sandbox Code Playgroud)
如果您只是使用wampserver 3.0.6和xdebug使用php 7.0.10调试本地会话,则几乎不需要手动编辑php.ini(稍后会对此进行更多介绍)。
您可以从任务栏图标菜单激活xdebug.remote_enable。这样做应该会在php.ini中产生类似以下输出的内容(位于文件的绝对结尾):
; XDEBUG Extension
[xdebug]
zend_extension ="C:/wamp64/bin/php/php7.0.10/zend_ext/php_xdebug-2.4.1-7.0-vc14-x86_64.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:/wamp64/tmp"
xdebug.show_local_vars=0
Run Code Online (Sandbox Code Playgroud)
从那里,你需要明确自己添加(至少使用VS代码的PHP调试扩展时),以唯一的php.ini是:
xdebug.remote_autostart = 1
Run Code Online (Sandbox Code Playgroud)
之后不要忘记重启wampserver。如果需要远程连接到另一台主机,则可能需要som的变体(将127.0.0.1替换为远程IP):
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
Run Code Online (Sandbox Code Playgroud)
但这几乎超出了我的回答范围,因为这打开了全新的蠕虫罐头恕我直言
| 归档时间: |
|
| 查看次数: |
40029 次 |
| 最近记录: |