第二步:下载Xdebug
第三步:在PHP5里面找到php.ini,在这个文件的早蠢最后面加入如下配置信息:
[xhtml] view plaincopyprint?
[Xdebug]
zend_extension_ts="C:/Program Files/phpStudy/PHP5/ext/php_xdebug.dll"
xdebug.auto_trace = On
xdebug.show_exception_trace = On
xdebug.remote_autostart = On
xdebug.remote_enable = On
xdebug.remote_host = 127.0.0.1
xdebug.remote_port = 9000
xdebug.remote_handler = dbgp
xdebug.profiler_enable = on
xdebug.profiler_output_dir="C:/Program Files/phpStudy/PHP5/log
这里要特别注意:如果在文件里有其他的zend_extension_ts,需要注释掉,否则apache无法启动。
第四步:启动apache。
第五步:在eclipse的项目里的Properties里面找到"PHP Debug",在PHP Debugger里面选择"XDebug"
再配置毁禅一下:
第六步:再在Windows->Preferences里面配置下PHP Servers
接陆余陪下来,进入debug界面,就可以开始设置断点进行debug了。希望能帮到你( ⌒㉨⌒)人(⌒㉨⌒ )v
1,源码在服务器上面,通过url运行2,源码在本地服务器上,通过服务器运行,和服务器差不多
3,配置eclipse的php
cli模式慧山悉,不需要任何一种Web服务器(包括Apache或MS
IIS等前乎),只需要唯袭安装php就可以,这也是最常用的的方法~
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)