How to install and configure Xdebug under LinuxXdebug is an open source PHP program debugger (a debug tool) that can be used to track, debug, and analyze the health of PHP programs.This article is to explain in Linux under the Xdebug installation
Objective:In our usual PHP development, after a large project has been accumulating for a long time, you will find that performance is getting slower and worse, and where performance is consumed, often a vexing question, how many times function a ()
Today when using XDebug to find a problem, when using XDebug in Eclipse, XDebug's progress bar will be stopped at 57%, and prompted "waiting for XDebug session." In the continuous investigation, and finally solve the problem, the following will be
Xdebug document (5) code coverage analysis and xdebug document
Code overwrite analysis allows you to know which line (or segment) of the script is being executed during the request.
Settings
Xdebug. coverage_enable
Type:Boolean, Default value:1,
The words PHPStorm write code to be very sense, various hints complement and error correction, and in L5 the namespace function is more powerful to be moved (new class automatically adds namespaces, automatically introduces namespaces, returns
First, configure the Php+xdebug
In the php.ini file plus
[xdebug]zend_extension = "D:\xampp\php\ext\php_xdebug.dll"//xdebug Dynamic library file path Xdebug.profiler_append = 0xdebug.profiler _enable = 1xdebug.remote_enable = On
Second,
Xdebug version Downloadhttp://www.xdebug.com/download.phpNote that when downloading xdebug we have to look at our PHP version as well as Xdebug, and to see if your PHP is thread-safe or non-thread-safe, otherwise it will not work.After downloading
The code is as follows
Copy Code
Current environment: CentOS6.4 64-bit/PHP Version 5.3.3 Installation dependencies: [root@e/]# yum-y install gcc automake autoconf libtool make wget php-develDownloadhttp://xdebug.org/files/Latest
I. Installation of XDEBUG
1, compile and install Xdebug, you can also use pecl install Xdebug
wget http://xdebug.org/files/xdebug-2.3.2.tgz
tar-zxvf xdebug-2.3.2.tgz
cd
Today, I amXDebugTo share some of your experiences.XDebugThis is also because it is installed only when it is used to generate a coverage analysis file. It is not frequently used in recent contacts, but it is indeed a good tool, if you want to rely
IDE = Xdebug = Apache (XAMPP) + Firefox + easist Xdebug1>xampp stop Apache Service;2> locate php.ini in the installation directory, similar to D:\xampp\php\php.ini, open and locate the item that was commented out and set it as follows:Zend_extension
Php + phpStorm + xdebug configuration method, phpstormxdebug
1. Download The xdebug File
Http://xdebug.org/wizard.php
Copy the source code of phpinfo () to the text box. xdebug prompts you how to configure and download the version of
Using Wincachegrind to analyze the execution time and efficiency of PHP, you need to install the xdebug extension. If you do not understand xdebug, please first read the "PHP debugging tool Xdebug Installation and use" this article.Wincachegrind is
PHP development environment is relatively good configuration, but PHP debugging environment is more difficult to match, mainly php5.3 introduced a more secure mechanism, so that the original Zend debug compatibility is not so good, so use Xdebug to
Here is only the Xdebug performance optimization (Xdebug can also be combined with other IDE breakpoint debugging, etc.), the detailed can refer to Xdebug's official site http://xdebug.org/What is Xdebug?Xdebug is an open source PHP program debugger
In the previous PHP series of the article "PHP Integrated Development Environment Comparison", I based on my own experience, very brief introduction and comparison of several commonly used integrated development environment, personally, compared to
to the official website http://www.xdebug.com/download.php Downloadfind the corresponding PHP version of Xdebug , behind with TS for thread-safe, native environment Win7 + php-5.5.1-win32-vc11-x64 , the download is Xdebug 2.3.3 PHP 5.5 VC11 TS
The breakpoint debugging function of VS is very powerful there are wood there, can see all the variables have wood there. PHP debugging is very troublesome to have wood, echo,var_dump write you want to vomit there are wood. Want to experience the
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.