I use something like this....

In your application.cfm
<cfscript>
        // show/hide debug output --->
        if(not isDefined("application.Debug")){
                application.Debug = "no";
                locDebug = "no";
        } else if (isDefined("url.Debug")) {
                application.Debug = url.Debug;
                locDebug = url.Debug;
        } else {
                locDebug = application.Debug;
        }
</cfscript>
<cfsetting showdebugoutput="#locDebug#">

Let the locking debate begin. :P

Justin Hansen
Project Manager
Uhlig Communications

[EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 10:19 AM
To: [EMAIL PROTECTED]
Subject: [KCFusion] Turning off debugging on the fly?



Does anyone know how to turn of CFMX 6.1 debugging on the fly?

I have it turned on for my IP# via the CF Administrator, but would like to selectively 
turn it off for a particular page I am testing.  In CF5, you could turn it on by 
sending a URL parameter of ?mode=debug.  I do not believe you can do this anymore in 
MX, nor could you ever turn debugging off on the fly.

Any thoughts?  I'm trying to determine the processing time (hm...if I turn off 
debugging, there goes that easy measure) of a page without all of the queries of 
queries showing up in the debugging code.  The easiest way would be to manually turn 
off debugging in the administrator, but I would rather not do so.

Ryan









 
=========================================================
Kansas City ColdFusion User Group's website & listserv is 
hosted through the generous support of Clickdoug.com
To send email to the list, email  [EMAIL PROTECTED]
To subscribe or unsubscribe, send an email to [EMAIL PROTECTED] with your request.
For hosting solutions http://www.clickdoug.com
Featuring Win2003 Enterprise, RedHat Linux, CFMX 6.1. 
======================================================

j{°(­È*%t[¬Š‰ÔêÆ‹©³›²+^–+-±êïŠÈh²×¶èºm…èêèºË.¦š+¶‡Â'$v‹ r‰“¢Çué[h¶¥ŠË^™¨¥‘Çî²*'‘Çî²*'¢¸¢Ë±Êâmê+º{.nÇ+‰·¬zwZé[h¯&§‘Çî²*'¢¸0ŠØr¢êëz«ž²Ñh®,¶)àn¶*'²m§ÿðÃ%‰É¢è¢a^jÛŠxŠ}´Óq'µêé®+EçGjÒâžìBÅú

Reply via email to