PHP Xdebug Configuration related issues, crazy!

Source: Internet
Author: User
PHP xdebug configuration problem, crazy!!
My environment is: Apache 2.2.9 + PHP 5.2.6 + MySQL 5.1.28 under Windows XP

Open phpinfo.php does not show the configuration success information


I thought it was Xdebug's version, so I got a php_xdebug-2.1.1-5.3-vc6.dll,php_xdebug-2.0.2-5.2.5.dll,php_. Xdebug-2.1.1-5.3-vc6-nts.dll,php_xdebug-2.1.1-5.2-vc6-nts.dll these 4 versions, and repeated trials, there is a restart Apache server

Path:



The php.ini configuration is as follows:

[Zend]
; zend_extension_manager.optimizer_ts= "D:\Program files\zend\zendoptimizer-3.2.6\lib\optimizer-3.2.6"
; zend_extension_ts= "D:\Program Files\zend\zendoptimizer-3.2.6\lib\zendextensionmanager.dll"

zend_extension= "D:\Program Files\apache software Foundation\apache2.2\php_xdebug-2.1.1-5.3-vc6-nts.dll"

[Xdebug]

; whether to turn on automatic tracking

Xdebug.auto_trace = On

; whether to turn on exception tracking

Xdebug.show_exception_trace = On

; whether to turn on remote debugging auto-start

Xdebug.remote_autostart = On

; whether to turn on remote debugging

Xdebug.remote_enable = On

; Allow client IP to debug

Xdebug.remote_host=localhost

; Remote debugging port (default 9000)

xdebug.remote_port=9000

; Debug Plugin DBGP

Xdebug.remote_handler=dbgp

; whether to collect variables

Xdebug.collect_vars = On

; whether to collect return values

Xdebug.collect_return = On

, whether to collect parameters

Xdebug.collect_params = On

; Trace Output Path

Xdebug.trace_output_dir= "D:\Program Files\apache software Foundation\apache2.2\xdebug"

; Whether to open debug content

Xdebug.profiler_enable=on

; Debug Output path

Xdebug.profiler_output_dir= "D:\Program Files\apache software Foundation\apache2.2\xdebug"



It's been a long time and it's not good to get mad!! Let's see what the problem is!


------Solution--------------------
Paste in my configuration:
Zend_extension=d:\php5\ext\php_xdebug-2.1.1-5.3-vc9.dll
[Xdebug]
Xdebug.remote_enable=on
Xdebug.remote_handler=dbgp
Xdebug.remote_host=localhost
xdebug.remote_port=9000
Xdebug.auto_trace=on
Xdebug.profiler_enable=on
Xdebug.collect_return=on
Xdebug.show_local_vars=on
Xdebug.max_nesting_level=50
Xdebug.var_display_max_depth=6
Xdebug.dump_once=on
Xdebug.dump_globals=on
Xdebug.dump_undefined=on
xdebug.dmp.request=*
Xdebug.trace_output_dir=d:\debug
Xdebug.profiler_output_dir=d:\debug
------Solution--------------------
Check the PHP log to see if there is any error message
Extension_dir= "D:\php5\ext"
Extension=xdebug.dll
Plus try.
------Solution--------------------
Xdebug.default_enable = On
  • 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.