针对Web开发人员的10个高效PHP调试工具

jopen 10年前

PHP Debugger

针对Web开发人员的10个高效PHP调试工具

It is one of the most popular and widely used PHP debugging tools available out there. It helps you find the bugs and then take care of them. This tool also has the ability of inspecting any variables or classes in PHP and then assigning various values to them in the script.

Krumo

针对Web开发人员的10个高效PHP调试工具

This tool provides you with structured and easy to comprehend information about any PHP variable. The output is in the form of a collapsible DHTML tree and is laid around the structure of the PHP variable. This thing will fasten the debugging process and makes your life a lot easier!

Kint

针对Web开发人员的10个高效PHP调试工具

If you have already used the var_dump(), print_r() and debug_backtrace() in debugging, then this tool will prove to be useful for you. It allows you to identify the type of data being dumped and will provide suggestions on other alternatives to make your project even more efficient.

MacGDBp

针对Web开发人员的10个高效PHP调试工具

As the name suggests, this tool is for Mac users. It is one of the best tools of its kind for Mac. It has the ability of stepping through your code and setting breakpoints, then bringing up the inspector HUD viewing the complete contents of variables is possible which makes this tool perfect for long codes like that of templates etc.

Pinba

Pinba is a MySQL storage engine that has the ability of acting like a statistics server for PHP. It functions include accumulating and processing data sent over UDP. The report provided by it is easy to read and comprehend.

DebugBar

针对Web开发人员的10个高效PHP调试工具

This awesome JavaScript tool can be easily incorporated into your project for collecting and showing profiling data. It also boasts support for Ajax requests and all famous libraries and sits on the footer.

PHP_Dyn

This one is an extension that has the ability of getting execution trace of scripts without changing them. Printing the HTTP request parameter and getting information of the argument value of the function call is possible. You can print the returning values can.

Whoops

针对Web开发人员的10个高效PHP调试工具

This one is really popular PHP libraries that can help you take care of errors and debug them with ease. It boasts user-friendly API which can help you in dealing with exceptions. Tracing frames and their data which are easily integratable with any framework is also possible.

Firebug

针对Web开发人员的10个高效PHP调试工具

This tool allows combining it with a server-side library and PHP scripts, so this will provide the debugging information to the browser. It creates log warnings and errors in PHP scripts which you can take care of then.

PHPMD

针对Web开发人员的10个高效PHP调试工具

This one is a really easy-to-use tool that allows measuring raw data. It shows you several potential problems in your code such as bugs, sub-optimal code and unused parameters which can make your project less efficient.