接触PHP不久,修改一个项目,项目是2011年写的,当时开发时用的是集成环境apmserv5.2.6,该环境内含的php版本是5.2.6。我拿过来后,自然也搭建这样的环境:apmserv5.2.6+editplus,可是这样根本就不能调试PHP代码,用NetBeans+xamp的话,在NetBeans里调试确实很方便,可是项目如果要转到NetBeans里的话太麻烦,要修改很多东西,还有很多乱码(项目的有些文件是gb2312有些是utf8,不知道当初写项目的人怎么想的)。
想问一下:apmserv5.2.6结合什么工具才能做到对PHP代码的调试(单步执行,跳入跳出等)??
想问一下:apmserv5.2.6结合什么工具才能做到对PHP代码的调试(单步执行,跳入跳出等)??
echo/print/print_r/var_dump 输出/打印
exit 退出
单步调试我这用的是xdebug+dbgpPlugin+(notepad++)
中间也是走了很多弯路,无外乎是版本的问题。附上几个链接:
xdebug:http://xdebug.org/files/php_xdebug-2.1.2-5.2-vc6.dll
dbgpPlugin:http://down.51cto.com/data/721874 (注意这个版本对应的notepad++是unicode版)
notepad++:这个百度一大堆
[Xdebug]
zend_extension_ts="E:/websoft/APMServ5.2.6/PHP/ext/php_xdebug.dll"
xdebug.auto_trace=0
xdebug.collect_assignments=on
xdebug.collect_params=on
xdebug.collect_return=on
xdebug.collect_vars=on
xdebug.trace_output_dir="E:/websoft/APMServ5.2.6/Xdebug"
xdebug.profiler_enable=on
xdebug.profiler_output_dir="E:/websoft/APMServ5.2.6/Xdebug"
xdebug.remote_enable=1
;xdebug.remote_autostart = Off
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_mode=req
xdebug.idekey=default
xdebug.remote_log="E:/websoft/APMServ5.2.6/Xdebug/remote.log"
xdebug.remote_port=9000
xdebug.show_exception_trace=0
xdebug.show_local_vars=9
;-------------------------------
xdebug.show_mem_delta=1
xdebug.trace_format=0
以上是我的配置信息 请参考。
其实也能单步调试 但是又怎么样呢...
大爱这个电影。百看不厌。