Paip. php configure Zend debugger breakpoint debugging for Cli ..

Source: Internet
Author: User

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 ..

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.