📜 ⬆️ ⬇️

BareTail & FirePHP

By nature, being a perfectionist, I try to put everything into my (not mine, but my own) shelves. It’s not always possible, but with BareTail and FirePHP it’s definitely lucky - the level of awareness during debugging has increased tremendously and this is in the complete absence of any output directly to the page code.

Back to front or start with FirePHP


FirePHP is an extension for the well-known Firebug debugger (its light versions bring the functionality of this wonderful extension to other browsers).

The principle of its operation is simple as everything is ingenious - Firebug captures and displays the contents of HTTP X-FirePHP-Data headers, which contain the debug information transmitted from the server. For the developer, everything looks transparent - we display debug information through the OO interface provided by the server-side FirePHP and on the additional tab Firebug we see it in color and sometimes with salute. The page is not distorted.

The extension will be most enjoyable for developers using common frameworks like CodeIgniter, Symfony or ZendFramework for which the server part of the extension is written in compliance with the doctrines and agreements of these frameworks. This means that the work on the output of debug information will be more familiar. For example, for the ZF backend, FirePHP is designed as a Zend_Log_Writer_Firebug writer, passing that to the logger constructor, you can change the logging principle in one fell swoop.
')
The pitfall of the FirePHP operation lies in the almost mandatory inclusion of output buffering, otherwise there may be collisions in the output or its absence.

More information about the extension can be found on its official website www.firephp.org .

Baretail


This shareware utility provides the ability to track frequently changing information such as logs. This is the Win32 equivalent of the tail command from the world * nix - i.e. implementation of the ability to view the file from the end. In addition to viewing the last lines of the file, it is possible to track the contents as it is updated. in real time, which is very suitable for viewing logs (“if you have them”).

BareTail also provides line highlighting when a certain signal part enters it. For example, you can adjust the view so that UPDATE / INSERT requests will be yellow, DELETE - red.

If the log is not updated very intensively, as is often the case with test systems, you can freely read the queries, comparing the expected with the resulting.

BareTail has an older brother in the form of a similar program with the possibility of highlighting by regular expression, filtering lines and other delights.

In addition to BareTail, there is a fully functional, free version of the program with similar BareTail Pro functions. This is fLogViewer . However, as shown by the use of both utilities, in most cases the capabilities of the younger version of BareTail are enough.

Cross-post .

UPD : just a few minutes ago, the release of ZendFramework 1.6 with support for FirePHP was published.

UPD : Foreign article "FirePHP and Zend Framework 1.6"

Source: https://habr.com/ru/post/38750/


All Articles