Home  >  Article  >  Backend Development  >  12 Debugging Tools for PHP Developers_PHP Tutorial

12 Debugging Tools for PHP Developers_PHP Tutorial

WBOY
WBOYOriginal
2016-07-20 11:16:07811browse

PHP is the most rapidly developing and most used scripting language in practice; it contains many features such as detailed documentation, a huge community, countless usable scripts and supporting frameworks. These features provided by PHP make it easier to get started than scripting languages ​​​​such as Python or Ruby.

To build innovative and fun web applications, PHP developers are constantly searching for useful tools. In this article, I have collected 12 PHP debugging tools for developers that will help developers easily find and debug errors in applications and scripts. The following PHP debugging tools support Ajax requests and include a generic data collector and stack-based error handler. I hope you find this list handy and useful in future projects.

1. Kint
                 

When debugging PHP code, var_dump(), print_r () and debug_backtrace() are our most commonly used tools. Kint, an open source software, a no-installation replacement that provides a better debugging experience. It cleverly detects nearly unreadable data and tailors them into regular output displays. It can prompt all variable names, files, line numbers and packaged functions.
                                                                                                                           🎜>

DebugBar is a free and open source software that can be integrated into any PHP project to collect and locate data. It has no third-party dependencies, supports Ajax requests, contains universal data collectors and integrates common libraries. The generated bar is 100% JavaScript and placed at the bottom of the page (like the developer tools). New collectors and views can be easily added, and previous requests can be saved or rerun.
                                                                                                                                                                                                                   🎜>Pinba It is an open source MySQL storage engine that can be used as a PHP statistics service. It uses the data it receives to analyze PHP application performance and quickly locate any issues.
                                                                                                                                                                                                             🎜>
PHPMD It is an easy-to-configure, friendly front-end for PHP primitive dependencies. It looks for a variety of potential problems in your code, including possible bugs, inappropriate code, unused parameters, etc.
                                                                                                                                    🎜>
Xdebug is a free and open source PHP extension for debugging and analyzing details of PHP scripts. Since it is an extension, it is easy to use and requires very little setup on the coding side. It can provide all the data from the stack trace and function trace in the error message, including all parameters of user-defined functions, function names, file names, and line flags. Xdebug can also provide memory allocation, analysis information and code coverage analysis data.

                                                                                                                                          🎜>
Whoops is a PHP library that makes error handling and debugging easier. This library provides stack-based error handling and has a nice-looking interface. It has a simple API for handling exceptions, is able to track frames and their data, and can be integrated with any framework (end and Silex have built-in integration).

                                                                                                                                      🎜>Many PHP developers use print_r() and var_dump() to debug output that is unreadable or unformatted. Krumo is a replacement for these functions that can display structured information about any PHP variable. After Krumo is run, the output will be displayed as a collapsible DHTML tree structure surrounding PHP variables. At the same time, it speeds up the debugging process by having the ability to "turn off" the debugging process itself rather than disabling all traceback paths in the code.
                                                                                                      

Debugging is the process of finding and fixing bugs. PHP Debugger is the best tool to help you quickly find errors and remove them from your PHP program. You can set up remote debugging in PHPEd and enable it through the PHP debugging settings in the Wizard and DBG wizard.
                                                                                                                  
The basic purpose of PHP_Debug is to provide assistance when debugging PHP code.

Source code
10. Webgrind



🎜>Xdebug is one of the most popular PHP debugging extensions. It provides a lot of useful data to help you find bugs in the source code.
                                                                                                       🎜>PHP_Dyn is an excellent open source PHP debugging tool. You can trace function execution and get an output of the function's parameters and return value.

                                                                                             MacGDBp is a PHP debugger on MAC OS. It has all the features you would expect, a full-featured debugger that includes step-by-step execution and the ability to set breakpoints.


English original text:
12 PHP Debugging Tools for Developers

http://www.bkjia.com/PHPjc/440133.html
www.bkjia.com
true
http: //www.bkjia.com/PHPjc/440133.htmlTechArticle

PHP is the scripting language that is developing rapidly in practice and is the most used; it includes detailed documentation, huge Community, countless available scripts and supporting frameworks, and many more features. PHP provides...


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn