Hide Debugging Output

When debugging ColdFusion applications developers often find that they have to write output to the screen (perhaps to display variable contents, or to check code flow). If the generated output is simple HTML then it is quite easy to find and read this output, but if you are generating more complex output (perhaps using CSS, DHTML, Flash, or other technologies) then the output might not be as readily visible. One solution is to create HTML comments with your debug code within them, perhaps like this (making sure to use two hyphens, not three). Then you can simply View Source in the browser and do a Find to find the debug text in the generated output. (Applies to: ColdFusion All)

Leave a Reply