当前位置:Gxlcms > PHP教程 > vs.php+wamp+vs2008调试PHP

vs.php+wamp+vs2008调试PHP

时间:2021-07-01 10:21:17 帮助过:25人阅读

WAMP 已经含xdebug了,就不需要到网上下载了,只要稍微修改一下配置就可以调试了

找到下面这行

zend_extension = "d:/wamp/bin/php/php5.3.13/zend_ext/php_xdebug-2.2.0-5.3-vc9.dll"

然后粘贴这个配置上去

[xdebug]

;这里VS.php 要写对,不然无法调试

xdebug.idekey = VS.php

xdebug.remote_autostart = 1

xdebug.remote_port = 7870

xdebug.auto_trace = On

xdebug.show_exception_trace = On

xdebug.remote_enable = On

xdebug.profiler_enable = On

xdebug.profiler_enable_trigger = On

xdebug.profiler_output_name = cachegrind.out.%t.%p

xdebug.profiler_output_dir = "d:/wamp/tmp"

然后,用 vs2008 新建 php项目进行测试,项目属性为 external -> startpage->xdebug

就可以设置断点调试php项目了

人气教程排行