paip.php 配置ZEND DEBUGGER 斷點調試for cli..

來源:互聯網
上載者:User

paip.php  配置ZENDDEBUGGER 斷點調試for cli..

作者Attilax ,  EMAIL:1466519819@qq.com 
來源:attilax的專欄
地址:http://blog.csdn.net/attilax  

需要用PHP寫個命令列指令碼..所以需要斷點調試..

1.查看PHP版本號碼..
-------------
php.exe -h   help..

php.exe -v
PHP 5.2.5 (cli) (built: Nov  8 2007 23:18:51)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
   
下載解壓PHP5.2 版本的TS版的ZEND DEBUGGER   

2.查看載入的Ini檔案路徑.
---------------------
php.exe  --ini

3.php.ini增加ZEND DEBUGGER配置
----------------------------

[Zend]
zend_extension_ts=d:/ZendDebugger.dll
zend_debugger.allow_hosts=127.0.0.1
zend_debugger.expose_remotely=always

4.查看ZEND DEBUGGER配置是否成功...
---------------------------------------
D:\wamp\php\php.exe  -v
PHP 5.2.5 (cli) (built: Nov  8 2007 23:18:51)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
    with Zend Debugger v5.2.15, Copyright (c) 1999-2008, by Zend Technologies
Error in my_thread_global_end(): 1 threads didn't exit

說明配置成功,可看到 with Zend Debugger v5.2.15

5.eclipse php3增加php executables
------------------------------------

eclipse php3 >setting> php >php executables>add a php exepath....  順便可指定PHP.INI路徑..

6.開始調試SCRIPT
-----------
DEBUG>PHP SCRIPT  ....

7.解決老是斷點停留在第一行的問題
----------------------------------
DEBUG配置分為系統級,項目級,以及頁面級..只要在頁面級DEBUG設定更改,去掉..stop at first line就OK了..

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.