[nycphp-talk] Learning to program the right way
Jeff Slutz
jeff at jeffslutz.com
Fri Jan 27 13:22:15 EST 2012
For more invisible/seamless debugging server-side I've found error_log() to
be extremely handy as it doesn't change the display output at all.
JS
--
Jeff Slutz
JSLEUTH LLC
3242 44th ST APT 3F
Astoria, NY 11103
c. 970.443.9390
jeff at jeffslutz.com
On Fri, Jan 27, 2012 at 1:14 PM, David Krings <ramons at gmx.net> wrote:
> On 1/27/2012 10:14 AM, David Mintz wrote:
>
>> I could not possibly imagine living without Firebug and FirePHP. I am
>> thinking
>> more along the lines of XDebug.
>>
>
> Never used Firebug and FirePHP, but I will take it for a spin...when I
> ever get around to do some PHP coding again. Years back I looked around for
> good implementations of a PHP debugger and ended up going back to the
> 'source' of one using PhpED from Nusphere: the DBG debugger. In a nutshell,
> whatever you want to echo you can do with a debugger, and even more as you
> can do that before output is supposed to start or when there is no output
> at all. I tend to create separate script files depending on functional area
> (input/processing/output) and the processing files never generate any
> output. Throwing an echo in there would only add code that I have to take
> out later...and potentially forget about.
> Debuggers also show you the content of all variables and arrays and system
> values at a breakpoint, which is another benefit, because with break points
> you can continue on, which an echo it is not that easy, especially when the
> actual output with proper html header is yet to follow (and will fail).
> There are a few implementations of DBG in other editors that do not work
> across separate scripts, which is just useless. But no matter which
> debugger you have available, learning the basics of how to use it is time
> well spent.
> Other tools worthwhile to learn how to use are a profiler and
> phpdocumentor....unless you don't care about creating docs and flowcharts
> and stuff like that for others.
>
>
> David
> ______________________________**_________________
> New York PHP User Group Community Talk Mailing List
> http://lists.nyphp.org/**mailman/listinfo/talk<http://lists.nyphp.org/mailman/listinfo/talk>
>
> http://www.nyphp.org/show-**participation<http://www.nyphp.org/show-participation>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20120127/47bef5fd/attachment.html>
More information about the talk
mailing list