Re:Programmatically set debug options

2003-10-17 Thread Tim Blair
Does anyone know of a way to set specific debug options?

Yup, you can do it using the (undocumented, therefore unsupported) factory methods:

cfscript
 // grab the debugging service
 factory = createobject(java, coldfusion.server.ServiceFactory);
 cfdebugger = factory.getDebuggingService();

 // set the appropriate vars
 cfdebugger.settings.cgivar = 0;
 cfdebugger.settings.sessionvar = 0;
/cfscript

If you want a list of the options available for you to set (and their current values), run the following after grabbing the debugging service instance:

cfdump var=#cfdebugger.getSettings()#

HTH,

Tim.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re:Programmatically set debug options

2003-10-17 Thread David Adams
FuseBox 4 supports a Developer switch.Then when you complete you turn the switch to Production.

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]