We do something sorta like that, I have a chunk of code that looks for a "debug cookie". If you have the cookie and the value is set to debug =on via a URL var, you can see all of the diagnostic code, all of the server debug code and allows us to see any errors rather then the "An error has occurred, the webadmin has been notified...." message.
Kinda handy, Mark W. Breneman -Cold Fusion Developer -Network Administrator Vivid Media [EMAIL PROTECTED] www.vividmedia.com 608.270.9770 -----Original Message----- From: Darron J. Schall [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 3:10 PM To: CF-Talk Subject: Re: [OT] .Com (Launched new site last night, feedback please!) Same deal here: We have xxx1.my.com for development, xxx2.my.com for staging, and www.my.com for production. We wrote a UDF that returns the sub domain based on the ip address. <cfif getSubDomain() eq "xxx1"> debugging output here! </cfif> It's also useful in changing from http to https and ensure that the domain is right.. <cfoutput>https://#getSubDomain()#.my.com</cfoutput> Nothing is worse than having the live site link to stuff on your development server.. -d ----- Original Message ----- From: "Deanna Schneider" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, September 11, 2003 3:18 PM Subject: Re: [OT] .Com (Launched new site last night, feedback please!) > Pablo, > We avoid the issue of "uncommenting" our error tags for production by > wrapping them in an if statement that looks at the cgi.server_name > var. I'm > sure there's multiple ways to handle this, but we've found it's way > easier to do if you're not relying on remembering to change that one > little thing before going live. -d > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm