Home > Backend Development > PHP Tutorial > vs.php + wamp + vs2008 调试PHP

vs.php + wamp + vs2008 调试PHP

WBOY
Release: 2016-06-23 14:35:43
Original
897 people have browsed it

 

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项目了

 

 

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template