Install xdebug in netbeans in Windows 7

Source: Internet
Author: User
Tags zts netbeans

After a long time, this problem is finally solved. I will share my experience with you.

 

Add

Zend_extension = "C:/PHP/EXT/php_xdebug-2.0.5-5.3-vc6.dll" (the path should be noted that xdebug and PHP versions should be consistent)
Xdebug. remote_enable = on
Xdebug. remote_handler = dbgp
Xdebug. remote_host = localhost (by default, the host file of win7 does not have a ing from localhost to 127.0.0.1. You must add it yourself)
Xdebug. remote_port = 9000 (in netbeans {
Function onclick ()
{
Function onclick ()
{
Tagshow (Event)
}
}
} "> Debug port {
Function onclick ()
{
Function onclick ()
{
Tagshow (Event)
}
}
} "> The port is also set to 9000. Check whether the port is occupied)

Note: No other Zend-related {
Function onclick ()
{
Function onclick ()
{
Tagshow (Event)
}
}
} "> Statement. You must use IE or Firefox for debugging. Do not use a browser such as aoyou. Otherwise, xdebug cannot be connected.

 

The following describes the PHP extension method, which is very important.

 

Extension is an extension based on the PHP engine.

Zend_extension indicates Zend-based extension

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

 

 

After different extensions are installed. whether extension or zend_extension is used in ini depends on the extension. Some extensions may only use zend_extension, such as xdebug. Some extensions can also use extension or zend_extension, such as mmcache.

 

Note: The above conclusions are not necessarily accurate.The full path is required for zend_extension to load PHP extensions, while the relative extension_dir path can be used for extension loading.

 

After zend_extension can be used, there are several possibilities:

Based on the PHP version, the zend_extension command 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 use phpinfo () to check whether ZTS is enabled.
Zend_extension or zend_extension_ts. Of course, you can give it a try.
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.