12 个PHP开发调试工具

jopen 11年前

在这篇文章中,已经收集了12个PHP调试工具用于开发,这将帮助开发人员很容易地找到和调试他们应用程序与脚本中的错误。下面的PHP调试工具支持Ajax请求,包括通用的数据采集器和基于堆栈的错误处理。

1. Kint

12 个PHP开发调试工具
When debugging PHP code, var_dump(), print_r() and debug_backtrace()are usually our best friends. Kint, an open source resource, is a zero-setup replacement that offers a better debugging experience. It smartly detects the type of data being dumped displays tailored alternatives to otherwise hardly readable data. The name of the variable, file, its line and the function wrapping it are all presented.
 
Source  

2. DebugBar

12 个PHP开发调试工具
DebugBar is a free and open source app that can integrate into any PHP project and collect + present profiling data. It has no dependencies, supports Ajax requests and includes generic data collectors and collectors for well known libraries. The bar is 100% JavaScript that sits in the footer (like Dev. Tools). New collectors and views can be added with ease and it is possible to save/re-run previous requests.
 
Source  

3. Pinba

12 个PHP开发调试工具
Pinba is an open source MySQL storage engine that acts as a statistics server for PHP. It uses the data received to to analyze the performance of PHP apps and locate any problems quickly.
 
Source  

4. PHPMD

12 个PHP开发调试工具
PHPMD is an easy to configure, user-friendly front-end for the raw metrics that PHP Depend measures. It looks for several potential problems in your code, including possible bugs, suboptimal code, unused parameters, and more.
 
Source  

5. Xde Bug

12 个PHP开发调试工具
Xdebug is a free and open source PHP extension for debugging and profiling PHP scripts in detail. Considering it is an extension, the usage is easy and requires very few things to setup in the code-side. It can provide data on stack traces and function traces in error messages with full parameter display for user defined functions, function name, file name and line indications. Xdebug can also present the memory allocation, profiling information and code coverage analysis.
 
Source  

6. Whoops

12 个PHP开发调试工具
Whoops is a PHP library for handling errors and debugging them much easily. The library provides stack-based error handling with a good-looking error interface. It has a simple API for dealing with exceptions, trace frames + their data and can integrate with any framework (ready-to-use integrations exist for end and Silex).
 
Source  

7. Krumo

12 个PHP开发调试工具
Many PHP developers use print_r() & var_dump() for debugging which output hard to read/unformatted results. Krumo is a replacement for these functions which can display structured information about any PHP variable. Once Krumo is ran, the output is displayed in a collapsible DHTML tree built around the structure of the dumped PHP variable. Also, it speeds up the debugging process by the ability of turning it “off” rather than disabling every dumping route inside the code.
 
Source  

8. Php Debugger

12 个PHP开发调试工具
Debugging is the process of finding the bugs so they can be fixed and the PHP Debugger is the best tool for helping you find the bugs fast and eliminate them from your PHP programs. You can setup remote debugging in PhpED with the help of debug PHP Settings Wizardand DBG Wizard.
 
Source  

9. Php Debug

12 个PHP开发调试工具
The basic purpose of PHP_Debug is to provide assistance in debugging PHP code.
 
Source  

10. Webgrind

12 个PHP开发调试工具
Xdebug is one of the most popular debugging PHP extensions. It provides a ton of useful data to help you quickly find bugs in your source code.
 
Source  

11. PHP_Dyn

12 个PHP开发调试工具
PHP_Dyn is another excellent PHP debugging tool that’s open-source. You can trace execution and get an output of the argument and return values of your functions.
 
Source  

12. MacGDBp

12 个PHP开发调试工具
MacGDBp is a live PHP debugger application for the Mac OS. It has all the features you’d expect from a fully featured debugger, such as the ability to step through your code and set breakpoints.
 
Source