Construction of PHP development environment (Xdebug debugging)

Source: Internet
Author: User

My WIN8 system is not loaded with xdebug, so install PHP development environment on XP virtual machine

The PHP development environment mainly includes: (1) Service Integration Environment Appserv (2) Development environment Zend Studio (3) Debugging environment Xdebug

1, download Appserv installation, installed is Appserv 2.5.10, which includes:

Apache 2.2.8

PHP 5.2.6

MySQL 5.0.51b

phpMyAdmin-2.10.3

2, installation Zend Studio 10, Chinese cracked reference: http://blog.csdn.net/qq1355541448/article/details/16807429;

The project file should be placed under the WWW folder of Appserv;

Installation of 3,xdebug

(1) Download xdebug, try this line Php_xdebug-2.1.0-5.2-vc6.dll

Put this DLL under the Php5\ext folder under the Appserv installation directory

(2) configuration php.ini (C:\WINDOWS directory below)

The last side of the php.ini document is added as follows: Reference http://huangliangfeixu.blog.163.com/blog/static/189747062201011105196849/

[XDebug]
zend_extension_ts= "C:\AppServ\php5\ext\php_xdebug-2.1.0-5.2-vc6.dll"
; 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=127.0.0.1
; 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= "C:\xdebug"
; whether to open debug content
Xdebug.profiler_enable=on
; debug output Path
xdebug.profiler_output_dir= "C:\xdebug"

Then reboot Apache, see if Phpinfo (Http://localhost/phpinfo) has xdebug, install xdebug successfully, but also configure Zend Studio to debug

(3) Zend Studio Configuration Debugging Environment: Windows->preferences->php->php Executables->add under the menu

4, Zend Studio enables the Xdebug debugging environment:

Menu windows->preferences, configure the corresponding xdebug just added just fine.

5, Debug.

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.