国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
Zend Studio下的PHP代碼調(diào)試

Zend Studio下的PHP代碼調(diào)試

問題:Zend Studio無法調(diào)試php代碼

安裝Zend Debugger

下載

http://downloads.zend.com/pdt/server-debugger下載最新的debugger

下載后將zip解壓縮。得到一個目錄:有x_x_x_compx_x_x_nts_compx指版本號,ntsnon thread safe,使用phpinfo查看你的php安裝版本和thread safe屬性,

配置

1、請將ZendDebugger.dll復(fù)制到您的php安裝目錄下,比如:你的php根目錄/ext/

2、然后將下面的4行內(nèi)容加到您的php.ini

[Zend]

zend_extension_ts=C:/wamp/bin/php/php5.2.9-2/ZendDebugger.dll

;此處ts代理線程安全

zend_debugger.allow_hosts=127.0.0.1

zend_debugger.expose_remotely=always

其中,127.0.0.1是遠程調(diào)試的文件所在機器的IP;我是本地web調(diào)試

3、將dummy.php復(fù)制到apachedocument root目錄。

4、重啟apache。

5.Zend StudioTools->preferences->debug下核對一下設(shè)置是正確的

6.測試Debugger是否成功

 

 

問題:Test Debugger報錯

“A timeout occurred when the debug server attempter to connect to the following client hosts/IPS”

所以注意了:如果你的php版本是5.3以上,且是thread safe的,那么不要浪費你的時間做嘗試,建議你直接改用XDebug吧。以下官方給出的解釋。

 

 

The Debugger we provide supports only the non-thread-safe architecture, that is why it does not load in your configuration.
Zend stopped supporting the thread safe architecture when Microsoft also decided to implement its PHP engine with the fast-cgi architecture which means non-thread-safe.
Best regards,
Massi.

 

 

任務(wù):XDebug安裝

 

http://xdebug.org/download.php選擇自己需要的xdebug版本。

下載并解壓到自己需要的位置。

php.ini中加入

zend_extension_ts="你的php根目錄/ext/php_xdebug.dll"

如果不行改用

zend_extension="你的php根目錄/ext/php_xdebug.dll"

然后重啟apache通過phpinfo()輸出并查找xdebug是否被成功加載。

問題:XDebug無法進入斷點

php.ini中加入

;開啟自動跟蹤

xdebug.auto_trace = On

;開啟異常跟蹤

xdebug.show_exception_trace = On

;開啟遠程調(diào)試自動啟動

xdebug.remote_autostart = On

;開啟遠程調(diào)試

xdebug.remote_enable = On

;收集變量

xdebug.collect_vars = On

;收集返回值

xdebug.collect_return = On

;收集參數(shù)

xdebug.collect_params = On

xdebug.trace_output_dir="e:/xampp/temp"

xdebug.profiler_enable=On

xdebug.profiler_output_dir=" e:/xampp/temp"

 

xdebug.remote_host=localhost

xdebug.remote_port=9000

xdebug.remote_handler=dbgp

 

最后,記得重啟apache

本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
在 Mac OS 10.5 Leopard 系統(tǒng)中配置 PHP 開發(fā)環(huán)境(PHP,Apache 以及 MySQL)
How to Setup BDGp debugger in Notepad to De...
使用NetBeans調(diào)試PHP?
PHPWAMP集成環(huán)境下的zend解密相關(guān)介紹
mac安裝xdebug調(diào)試php
安裝 xdebug
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服