Re: How do you handle debug code? Removing from production versus conditional execution

[email protected] (Richard) Mon, 24 Apr 2023 17:50:10 -0000 (UTC)
Newsgroups comp.lang.php
Organization multi-cellular, biological
Message-ID <[email protected]>
[Please do not mail me a copy of your followup]

[email protected] (The Doctor) spake the secret code
<[email protected]> thusly:

>This abusive spamtroll came from

You're only making it worse by responding to their posts.  Either
report the abuse to their posting ISP or adjust your KILL file to drop
their posts so you don't see them.

To answer the real question from 2019 (whee!), instead of addding
"debug" code to your production deployment, write unit tests for
everything you do so that you have confidence in the deployed code.

An example can be found here:
<https://github.com/LegalizeAdulthood/manx>
-- 
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
            The Terminals Wiki <http://terminals-wiki.org>
     The Computer Graphics Museum <http://computergraphicsmuseum.org>
  Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>