Developers often embed debug output in their code during development, and then find themselves removing it (to see the results without extraneous output) and then reinserting it (to perform further testing). If you’ve ever found yourself doing this then you should take a look at the IsDebugMode() function which can be used to encapsulate output (or any CFML code) so that it is only executed if debugging is turned on (in the CF Administrator). (Applies to: ColdFusion 4.5 (or later))

Leave a Reply