views:

217

answers:

3

We have FireSymfony that allows one to view the Symfony, PHP variables in a firebug panel, so I wonder whether there is a similar extension that allows me to view PHP variables for general PHP apps ( not just Symfony apps)?

+2  A: 

I think that is part of what Symfony supports, exporting PHP variables to client side for debugging.

you see, PHP variables are located on the server, not at the client. Thus when you load the page, you won't be able to see the PHP variables from client side.

Thus if you want to debug PHP variables, you must have a way for your application to export the variables out to the client side for firebug or any other extension to debug.

In other words, it's not really possible for that to happen for ALL php applications.

thephpdeveloper
+7  A: 

You may want to check out FirePHP. It is an extension to FireBug that allows sort of an extended logging of PHP through the Firefox Browser/Firebug Console.

Probably somewhat close to what you are looking for, even though you'd still have to make specific use of it in the PHP scripts.

Jörg
+1  A: 

Another option is Formaldehyde which integrates nicely with Firebug.

Mike Buckbee