WIN7+wampserver2.4+zend stadio10.6.1配置Xdebug
一、前言
zend stadio調(diào)試很不方便,php5.3版本之前可使用zend debuger調(diào)試,php5.3以后就需要使用XDebug調(diào)試了。下面介紹我配置的經(jīng)驗,希望幫助更多的人
二、配置步驟
1、打開WampServer-PHP-php.ini
在最下面加入如下內(nèi)容:
; XDEBUG Extension[Xdebug] zend_extension = "c:/wamp/bin/php/php5.4.12/zend_ext/php_xdebug-2.2.3-5.4-vc9-x86_64.dll" xdebug.auto_trace= "On" xdebug.collect_params= "On" xdebug.collect_return= "On" xdebug.trace_output_dir="c:/wamp/tmp" xdebug.profiler_enable= "true" xdebug.profiler_output_dir="c:/wamp/tmp" xdebug.profiler_append = 1 xdebug.profiler_enable_trigger = 1 xdebug.profiler_output_name = "cachegrind.out.%t-%s" xdebug.remote_enable= "On" xdebug.remote_enable= 1 xdebug.remote_autostart = "On" xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.remote_handler = "dbgp"其中要注意的幾項是:zend_extension后面的內(nèi)容是安裝wampserver后自帶的xdebug文件。remote_host是主機(jī)名可以是遠(yuǎn)程的ip地址或者本機(jī)localhost。remote_port為端口號,通常為9000。
ok,保存。
2、重啟apache服務(wù)器 通過運(yùn)行phpinfo()看到如下信息,證明配置成功
3、配置zend stadio
選擇window-Preference-php Executables點(diǎn)擊Add
按照如下選擇
接下來選擇window-Preference-php Servers點(diǎn)擊New
按照如下設(shè)置服務(wù)
接下來選擇window-Preference-Debug-Installed Debug設(shè)置端口號
下面window-Preference-Debug設(shè)置我們上面配置好的PHP Excutables和PHP Servers
點(diǎn)擊界面上方的小爬蟲,選擇下面的Debug Configarations
配置里面要調(diào)試的頁面
截下來切換選項卡Debuger,選擇XDebug
到此為止我們就配置完畢了。
選擇小爬蟲-Debug As-PHP Web Application調(diào)試我們的頁面
?
至此我們實(shí)現(xiàn)了使用XDebug調(diào)試,如果大家有什么疑問或者更好的建議,歡迎提出
?
轉(zhuǎn)載于:https://www.cnblogs.com/no27/p/4211863.html
總結(jié)
以上是生活随笔為你收集整理的WIN7+wampserver2.4+zend stadio10.6.1配置Xdebug的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: HID 设备(鼠标) report d
- 下一篇: superslide 学习笔记