12 Debugging Tools for PHP developers

Source: Internet
Author: User
Tags php debug php debugger php debugging tools stack trace

PHP is a scripting language that has developed rapidly and is used most in practice, and includes many features such as detailed documentation, a large community, countless scripts to use, and support frameworks. PHP offers these features to make it easier to get started than scripting languages like Python or Ruby.

PHP developers continue to search for useful tools to build web apps that are innovative and fun. In this article, I've collected 12 developer PHP Debugging tools that will help developers easily identify and debug errors in applications and scripts. The following PHP debugging tools support AJAX requests and include general-purpose data collectors and stack-based error handlers. I hope you will appreciate the convenience and usefulness of this list 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 replacement that doesn't need to be installed, provides a better debugging experience. It cleverly detects virtually unreadable data and customizes them to show the output of the rule. Variable name, file, line number, and wrapper function it all hints out.

Source

2. Debugbar

Debugbar is a free 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 a common data collector, and integrates common libraries. The generated bar is implemented by 100% JavaScript and placed at the bottom of the page (like development tools). New collectors and views can be easily added, and previous requests can be saved or rerun.

Source

3. Pinba

Pinba is an open source MySQL storage engine that can be used as a PHP statistical service. It uses the data received to analyze PHP application performance and quickly locate any issues.

Source

4. PHPMD

PHPMD is an easy-to-configure, original-dependent indicator-friendly front end for PHP. It looks for a variety of potential problems in your code, including possible bugs, inappropriate code, unused parameters, and so on.

Source

5. Xde Bug

Xdebug is a free and open source PHP extension for debugging and parsing PHP script details. Since it is an extension, it is convenient to use and requires very few settings on the encoder side. It can provide all the data for the stack trace and function traces in the error message, including all parameters of the user-defined function, function name, file name, and row flags. Xdebug can also provide data for memory allocation, analysis information, and code coverage analysis.

Source

6. Whoops

Whoops is a PHP library that makes error handling and debugging easier. This library provides stack-based error handling and has a good-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 integrations).

Source

7. Krumo

Many PHP developers use Print_r () and Var_dump () to debug output hard-to-read or unformatted results. Krumo is a substitute for these functions, which can display structured information for any PHP variable. After the Krumo is run, the output will be displayed as a collapsible DHTML tree structure around the PHP variable. At the same time, it speeds up the debugging process by "turning off" the debug process itself rather than disabling all trace paths in the code.

Source

8. PHP Debugger

Debugging is the process of discovering 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 by opening the PHP debug settings in the Wizardand dbg Wizard.

Source

9. PHP Debug

The basic purpose of PHP_DEBUG is to provide assistance when debugging PHP code.

Source

Ten. 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.

Source

Php_dyn.

Php_dyn is an excellent open source PHP debugging tool. You can trace the function execution and get an output of the function arguments and return values.

Source

MACGDBP.

MACGDBP is a PHP debugger on Mac OS. It has all the features you expect, a full-featured debugger that includes features such as stepping and setting breakpoints.

Source

English Original: http://codegeekz.com/12-php-debugging-tools-for-developers/

12 Debugging Tools for PHP developers

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.