12 debugging tools for PHP developers (1)

Source: Internet
Author: User
Tags php debugging tools

PHP is a script language that develops rapidly and is most widely used in practice. It contains many features such as detailed documents, a large community, countless scripts available, and support frameworks. These features provided by PHP make it easier to use 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 collected12 PHP debugging tools developed by developersThey help developers easily find and debug errors in applications and scripts. The following PHP debugging tool supports Ajax requests and contains a common data collector and a stack-based error processor. I hope you can see 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 is an open-source software and a replacement without installation. It provides a better debugging experience. It cleverly detects almost unreadable data and customizes them to output display of rules. Variables, files, row numbers, and packaged functions are all prompted.

Source code

2. DebugBar

DebugBar is a free and open source software that can be integrated into any PHP project to collect and locate data. It does not have third-party dependencies and supports Ajax requests, including common data collectors and integrating common libraries. The generated bar is implemented in 100% JavaScript and placed at the bottom of the page, just like a development tool ). New collectors and views can be easily added, and previous requests can be saved or re-run.

Source code

3. Pinba

Pinba is an open-source MySQL storage engine that can be used as a PHP Statistics Service. It uses received data to analyze PHP application performance and quickly locate any problems.

Source code

4. PHPMD

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

Source code

5. Xde Bug

Xdebug is a free and open-source PHP extension for debugging and analyzing PHP script details. Because it is an extension, it is easy to use and requires very few settings on the encoding end. It provides all data of stack trace and function trace in error information, including all parameters of user-defined functions, function names, file names, and row flags. Xdebug also provides data for memory allocation, analysis information, and code coverage analysis.

Source code

6. Whoops

Whoops is a PHP library that makes error handling and debugging easier. This library provides stack-based error handling and has a nice UI. It has a simple API for handling exceptions, which can track frames and their data, and can be integrated with any framework. end and Silex are already integrated internally ).

Source code


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.