Paip. php configure zenddebugger breakpoint debugging for Cli ..
Author attilax, email: 1466519819@qq.com
Source: attilax Column
Address: http://blog.csdn.net/attilax
You need to use PHP to write a command line script... so you need breakpoint debugging ..
1. Check the PHP version number ..
-------------
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
Download and decompress the Zend Debugger for ts of php5.2.
2. view the loaded INI file path.
---------------------
Php.exe -- ini
3. Added Zend debugger configuration for PHP. ini.
----------------------------
[Zend]
Zend_extension_ts = D:/zenddebugger. dll
Zend_debugger.allow_hosts = 127.0.0.1
Zend_debugger.expose_remotely = always
4. Check whether Zend debugger configuration is successful...
---------------------------------------
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
The configuration is successful. You can see that with Zend debugger v5.2.15
5. Added PHP executables to eclipse php3.
------------------------------------
Eclipse php3> setting> php> PHP executables> Add a PHP exepath... By the way, you can specify the php. ini path ..
6. Start script debugging.
-----------
Debug> PHP script ....
7. solve the problem that the breakpoint stays on the first line.
----------------------------------
The debug configuration can be divided into system level, project level, and page level. You only need to modify the debug settings at the page level, and remove the... stop at first line ..