用xdebug来进行调试。
1. 查看php是否线程安全
phpinfo() 中 查看thread safe属性是否是enable。
2. 下载xdebug插件
如使用的是xampp,则已经包括了该插件
3. 配置php.ini
[XDebug]
zend_extension = "D:devxamppphpextphp_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.auto_trace = 1
xdebug.profiler_output_dir = "D:devxampptmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "local.xxx-china.com"
xdebug.trace_output_dir = "D:devxampptmp"
xdebug.remote_port=9000
4. eclipse 配置
打开preference菜单,进入php debug选项,选择调试工具为xdebug。
依次配置解释器位置php.exe
配置web选项,和path mapping
最后
以上就是暴躁啤酒最近收集整理的关于PHP在eclipse上的调试的全部内容,更多相关PHP在eclipse上内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复