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]

