Php-debug integrato in Pear
Finalmente il repository ufficiale di Php, con +14 voti a favore ha un valido strumento per fare debbuging in php, il suo nome è Php_Debug (non molta fantasia è vero..) da non intendere dal classico debug linea per linea, ma una comoda toolbar sempre in evidenza (layout copiato pari pari dalla toolbar di debug di Symfony) che permette di vedere praticamente tutto, dalle query SQL al trace delle variabili, una breve panoramica delle funzioni:
- General process time SQL/PHP
- Check performance of parts of code
- Show sql of executed queries (with highlighting and execution time)
- Dump of all types of variable in a graphical way
- Functionnal/trace debug (with line, file, class, function)
- Show globals vars ($GLOBALS, $_POST, $_GET, $_COOKIE …)
- 2 renderers, as a HTML talbe or as a floating div
- Allow to watch variables (+ watch on type of var)
- Show php version & loaded extensions
- Allow to show source code of all parsed file (with TEXT_Highlighter)
- Static methods to debug/trace out of the debug renderer display
- Debug infos are classified by type (14 types available)
- Can replace the PHP error handler to show messages inside the debug renderer
Ti ho evidenziato quelle che ritengo più interessanti, lavorando con symfony gia trovavo questo sistema veramente impressionante e comodo, ora tutti gli sviluppatori Php che utilizzano Pear possono avere le stesse comodità (già potevano farlo prima ma non era uffialmente integrato in Pear e non aveva il layout alla Symfony).
Se volete vederlo in azione andate nel sito ufficiale
Comments
Leave a Reply