idiom for debug code?

From: Dan Perl (danperl_at_rogers.com)
Date: 09/30/04


Date: Thu, 30 Sep 2004 13:32:15 -0400

Is there a mechanism or an idiom for adding code for debugging so that it
can easily be removed in the production code? I am thinking of something
similar to the C/C++ preprocessor statements with which you can compile an
application with the debug code or without it (the default).

Dan



Relevant Pages

  • graphical debugging
    ... Does anyone have a good strategy for graphical debugging? ... debug versions and production versions. ... so that my production code is never messed up? ...
    (comp.soft-sys.matlab)
  • Re: Bugs at my web site
    ... But some of us never write "production code" and are happy to pay a factor ... once and to avoid having to maintain separate libraries for debugging and ...
    (comp.lang.fortran)