? ? ? 弄了我一天,看了很多的写法;但都是大同小异。并且自己的就是不能正常使用。
?
? ? 我的环境是使用 wamp一键安装环境。
? ? 在这里我只说明注意的地方:
? ?
?
? ?其一:下载后的xdebug文件放到 php/ext 下后一定要改名为php_xdebug.dll
? ?其二:xdebug.remote_port=9990 的端口和eclipse一致。
? ? ? ? ? ? ?补充:57%的问题
? ? ? ? ? ? ? ? ? ? ? ?是端口最好不要,还是以然后9000,就不会存在 ?waiting for session....
?其三:一定是配置 apache/bin/php.ini (因为在php下也有个,但是我在那里配置的不可以) 文件:
? ? ? ? ? ? ? ? ? ?在其后面加入:
;载入Xdebugzend_extension_ts="D:/wamp/php/ext/php_xdebug.dll";xdebug配置[Xdebug];开启自动跟踪xdebug.auto_trace = on;开启异常跟踪xdebug.show_exception_trace = on;开启远程调试自动启动xdebug.remote_autostart = on;开启远程调试xdebug.remote_enable = on;收集变量xdebug.collect_vars = on;收集返回值xdebug.collect_return = on;收集参数xdebug.collect_params = onxdebug.remote_port=9990xdebug.profiler_output_dir="d:/wamp/php/log" ?
Nach dem Login kopieren