PHP_Debug & Smarty

Sunday 20th May, 2007 at 9:49 am 1 comment

The new release of the PEAR::PHP_Debug library provides a great way to debug and monitor the state of your PHP application.  The floating DIV tag provides a quick and easy way to view the PHP variables and to examine your own vars and log messages.  In addition it provides access to the PHP Error messages that often get missed unless you examine the PHP error log frequently.

 Loïc Vernet  (the project lead) has done a great job with 1.0.0RC1 and I’m sure it’s gonna go from strength to strength.  I’d love to see the addition of creating your own top level groups to the toolbar (in addition to those existing already) and to be able to expand and add to the items in Vars & Config.

 If you’re a Smarty user then you’re used to using the Smarty debug console to examine the state of the template engine but the extra popup window can sometimes get annoying – so with the release of PHP_Debug I took the time to combine the output from the PHP_Debug window with the friendly in-browser display of PHP_Debug.

 The result can be found here on the Smarty Forums – version 0.1 isn’t exactly elegant – currently I’m struggling to find a better approach to integrate the 2 without making some core changes to Smarty. 

Stay tuned – I have a couple of ideas in the pipe to solve the problem…

Advertisements

Entry filed under: Development, PHP, Smarty.

IE 7 for x64 A blog focussed on VoIP and real world problems

1 Comment Add your own

  • 1. COil  |  Sunday 3rd June, 2007 at 11:09 pm

    Hi Dasher, thanks for your post and the full example of use with Smarty. Feel free to email me or to post your features request on my blog (or whatever you atrwant), we can discuss about it together. See you. COil 🙂

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Recent Posts


%d bloggers like this: