Andy Jarrett // Code. Develop. Manage.

Prevent Debug from showing on print outs

I made the mistake of printing one web page this morning without removing the debug information. What followed was 6 pages of, oh so lovely degug information. Anyway after a quick play i added the following bit of CSS to WEB-INF\\debug\\classic.cfm, to remove the debug information from printing

<style type="text/css" media="print">
\n   plaintext{display:none}
\n</style>

Enjoy, any improvments or alterations please let me know :o)
I’m here, learning and working away. If you liked this content and want to keep me going, consider buying me a coffee.
Your support keeps this site running and the coffee brewing! ☕️