WAMP 已经含xdebug了,就不需要到网上下载了,只要稍微修改一下配置就可以调试了
找到下面这行
zend_extension = "d:/wamp/bin/php/php5.3.13/zend_ext/php_xdebug-2.2.0-5.3-vc9.dll"
然后粘贴这个配置上去
立即学习“PHP免费学习笔记(深入)”;
[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项目了
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号