Eclipse 3.4.2 + xdebug debugging settings for the thinkphp project. ____php

Source: Internet
Author: User
Tags zts zend

As a memo.

Download Xdebug installed. Pay attention to the wording in php.ini.

Check the error log of PHP for some questions.

If the following prompts appear

PHP Warning:xdebug must is loaded as a Zend extension in Unknown on line 0

Note This line first,

; Extension=php_xdebug.dll

Add this line,
Zend_extension_ts= "X:/php/ext/php_xdebug.dll"

Another: According to the PHP version, the zend_extension directive can be one of the following:

Zend_extension (non zts, non debug build)
Zend_extension_ts (ZTS, non debug build)
Zend_extension_debug (non zts, debug build)
Zend_extension_debug_ts (ZTS, debug build)

Zts:zend Thread Safety

You can see if ZTS is enabled by Phpinfo () to determine whether to use Zend_extension or zend_extension_ts.

Also note that you are downloading the xdebug.

The following is a description found on the Internet, not knowing whether the explanation is right.

Extension is an extension based on the PHP engine

Zend_extension means an extension based on the Zend engine

Note: PHP is based on the Zend engine. Dizzy.

After different extensions are installed, extension or zend_extension are used in php.ini, depending on the extension, some extensions may only be zend_extension, such as xdebug, and some extensions can be extension or zend_ Extension, such as MMCache.

Different PHP installation modes to determine whether the ZTS is enabled. (This sentence does not know whether it is correct)

Note: The above conclusions do not guarantee accuracy. Zend_extension the full path is required to load the PHP extension, and extension can be loaded with a relatively extension_dir path.

Attention:

Eclipse's debugging of thinkphp is the same as the debugging method for normal PHP. O (∩_∩) o~

Related Article

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.