日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關咨詢
選擇下列產品馬上在線溝通
服務時間:8:30-17:00
你可能遇到了下面的問題
關閉右側工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
詳解ZendDebugger安裝全過程

調試技術是我們編程中不可或缺的重要部分,調試器是每個IDE環(huán)境都必備的組件。既然如此,Zend Studio的集成環(huán)境擁有一個調試器也就是理所當然的事情了,但是,該調試器在配置使用起來,其顯示出來的強勁功能一定會讓你驚嘆不已!

建網(wǎng)站原本是網(wǎng)站策劃師、網(wǎng)絡程序員、網(wǎng)頁設計師等,應用各種網(wǎng)絡程序開發(fā)技術和網(wǎng)頁設計技術配合操作的協(xié)同工作。創(chuàng)新互聯(lián)公司專業(yè)提供成都做網(wǎng)站、網(wǎng)站制作,網(wǎng)頁設計,網(wǎng)站制作(企業(yè)站、成都響應式網(wǎng)站建設公司、電商門戶網(wǎng)站)等服務,從網(wǎng)站深度策劃、搜索引擎友好度優(yōu)化到用戶體驗的提升,我們力求做到極致!

事實上,Zend Studio(后面簡稱ZDE)的調試功能分為內部調試和遠程調試。內部調試是用ZDE內置的PHP(有4、5兩個版本)進行的代碼初步調試,我們把重點放在遠程調試上,因為它可以完全模擬一個真實的運行環(huán)境。

遠程調試需要服務器端的組件支持,我們今天的內容就是怎么來安裝這個服務器端調試環(huán)境,用到的調試組件是Zend Debugger,它是輕便而且夠用的,在撰寫本文時,其***版本是5.2.14,與網(wǎng)絡上廣為流傳的5.2.10版略有更新。我的服務器是windows下的apache,因此我就下載了windows版的Zend Debugger,下來的壓縮包大約2.1M,有個readme.txt,我覺得有必要看哈子:

 
 
 
 
  1. Zend Debugger installation instructions
  2. —————————————
  3. 1. Locate ZendDebugger.so or ZendDebugger.dll file that is compiled for the correct version of PHP 
  4. (4.3.x, 4.4.x, 5.0.x, 5.1.x, 5.2.x) in theappropriate directory.
  5. 2. Add the following line to the php.ini file:
  6. Linux and Mac OS X: zend_extension=/full/path/to/ZendDebugger.so
  7. Windows: zend_extension_ts=/full/path/to/ZendDebugger.dll
  8. Windows non-tread safe: zend_extension=/full/path/to/ZendDebugger.dll
  9. (*) the windows non-thread safe is used only with Zend Core 2.0
  10. 3. Add the following lines to the php.ini file:
  11. zend_debugger.allow_hosts=
  12. zend_debugger.expose_remotely=always 
  13. 4. Place dummy.php file in the document root directory.
  14. 5. Restart web server.

這里已經(jīng)非常詳細的講了安裝方法了,那我就以我晦澀的語言再描述一遍吧,以下是壓縮包內所有文件的列表:

 
 
 
 
  1. ZendDebugger-5.2.14RC9-cygwin_nt-i386\md5
  2. ZendDebugger-5.2.14RC9-cygwin_nt-i386\Inventory.xml
  3. ZendDebugger-5.2.14RC9-cygwin_nt-i386\4_3_x_comp
  4. ZendDebugger-5.2.14RC9-cygwin_nt-i386\4_3_x_comp\ZendDebugger.dll
  5. ZendDebugger-5.2.14RC9-cygwin_nt-i386\4_4_x_comp
  6. ZendDebugger-5.2.14RC9-cygwin_nt-i386\4_4_x_comp\ZendDebugger.dll
  7. ZendDebugger-5.2.14RC9-cygwin_nt-i386\5_0_x_comp
  8. ZendDebugger-5.2.14RC9-cygwin_nt-i386\5_0_x_comp\ZendDebugger.dll
  9. ZendDebugger-5.2.14RC9-cygwin_nt-i386\5_1_x_comp
  10. ZendDebugger-5.2.14RC9-cygwin_nt-i386\5_1_x_comp\ZendDebugger.dll
  11. ZendDebugger-5.2.14RC9-cygwin_nt-i386\5_2_x_comp
  12. ZendDebugger-5.2.14RC9-cygwin_nt-i386\5_2_x_comp\ZendDebugger.dll
  13. ZendDebugger-5.2.14RC9-cygwin_nt-i386\5_2_x_nts_comp
  14. ZendDebugger-5.2.14RC9-cygwin_nt-i386\5_2_x_nts_comp\ZendDebugger.dll
  15. ZendDebugger-5.2.14RC9-cygwin_nt-i386\dummy.php
  16. ZendDebugger-5.2.14RC9-cygwin_nt-i386\README.txt

解壓出合適的也就是和你當前php的版本對應的Zend Debugger版本,我的php版本是5.2.5,因此我就把5_2_x_comp給拖出來了(至于5_2_x_nts_comp指的是non-tread safe,沒有明白具體用途,也就不妄用了),我將5_2_x_comp\ZendDebugger.dll移動到D:\myserver\ZendDebugger\5_2_x\ZendDebugger.dll,將壓縮包中的dummy.php解壓到web根目錄,我這里的apache的DocumentRoot設置在D:/myserver/wwwroot,就拷貝dummy.php到D:\myserver\wwwroot,然后修改php.ini,加入了這些內容:

 
 
 
 
  1. zend_extension_ts=D:/myserver/ZendDebugger/5_2_x/ZendDebugger.dll
  2. zend_debugger.allow_hosts=127.0.0.1/32,192.168.1.88/24
  3. zend_debugger.expose_remotely=always
  4.  

然后重啟apache,在略微的等待之后,我們輸入phpinfo()查看成功與否?

結果運行的很好。

下面打開zde,工具菜單->***項,選擇調試選項卡,設置調試方式為服務器,Debug Server URL填寫web服務器的URL,我這里apache的端口是8080,如果是默認80端口,就可以省略了,OK,設置完成,確定之(如圖)。

選擇 工具->檢查Debug Server連接,出來的對話框選擇是,我們看到了連接成功的提示。

至此,我們的Debug Server就算成功安裝完成了。


本文標題:詳解ZendDebugger安裝全過程
URL鏈接:http://m.5511xx.com/article/ccssodp.html