CF debug output not outputting

955 views
Skip to first unread message

Joe Genshlea

unread,
Nov 15, 2011, 2:44:17 PM11/15/11
to ColdFusion on Wheels
Hello -

I'm building my project on wheels and for some reason CFs debug output
is not showing.

I recently installed a developer edition of CF9 on my Windows 2008
server. I was using Railo, but it didn't support some of the
advanced chart features, so now I'm considering CF9. Anyway, Railo
rendered the debug output running the same wheels app.

I am not an experienced CF admin, so I thought someone could give me
suggestions

here are the settings

Debug Output settings:

Enable robust Exception Information TRUE
enable Ajax Debug log window FALSE
Enable Request Debugging output: TRUE

Custom Debugging output:

select Debugging output format
classic.cfm

report execution times: TRUE
General Debug information : TRUE
Exception Information: TRUE
Tracing information:TRUE
Timer information: FALSE
Flash Form Compile errors and messages: FALSE
Variables: TRUE (all checked)
Enable Performance Monitoring: FALSE
Enable CFSTAT: FALSE


Debug IP Addresses
127.0.0.1


Wheels:

config/settings.cfm

<cfset set(URLRewriting="On")>
<cfset set(showDebugInformation="true")>

config/environment.cfm

<cfset set(environment="design")>




Thanks in advance





tpet...@gmail.com

unread,
Nov 15, 2011, 3:33:10 PM11/15/11
to ColdFusion on Wheels
the first thing that i would do is eliminate wheels from the equation.
AFAIK there is nothing in wheels that would cause this to happen, but
i've been known to be wrong on several occasions :)

create another site and just put in an index.cfm with
<cfoutput>#now()#</cfoutput> in it and hit the site. do you see the
cfdebug output then?

Joe Genshlea

unread,
Nov 15, 2011, 3:42:56 PM11/15/11
to ColdFusion on Wheels

Good idea.

So after figuring out how to modify the rewrite stuff so that the
framework is bypassed, i was able to create a sandbox directory to
test this.

Still no debug output.

I wonder what is going on. I guess I've officially posted this
problem to the wrong group, although I'd kindly accept any
troubleshooting advice if it were offered ;)



On Nov 15, 12:33 pm, "tpetru...@gmail.com" <tpetru...@gmail.com>
wrote:

tpet...@gmail.com

unread,
Nov 15, 2011, 3:56:20 PM11/15/11
to ColdFusion on Wheels
question time then!

is this a new app or an existing app?

have you tried doing a global search for cfsetting and seeing if a
stray line of code is causing the problem?

have you tried restarting CF?

how many other copies of cf do you have installed? if you have more
then one are you sure that you're accessing the correct admin for the
copy running your app (sounds like a stupid question but i have 3 CFML
engines installed on my computer and i get confused quite a bit)

Joe Genshlea

unread,
Nov 15, 2011, 4:38:01 PM11/15/11
to ColdFusion on Wheels
Oh...geez.

A long time ago i was experimenting with AJAX calls in one of the
controllers...sure enough there is a cfsetting where I turned off
debugoutput.

So, is there a way to disable debug output in an ajax response, but
keep on for other responses?



joe


On Nov 15, 12:56 pm, "tpetru...@gmail.com" <tpetru...@gmail.com>
wrote:

tpet...@gmail.com

unread,
Nov 15, 2011, 8:51:15 PM11/15/11
to ColdFusion on Wheels
just create a filter. put this in your Controller.cfc init():

<cffunction name="init">
<cfset filters("NoDebugForAjax")>
</cffunction>

<cffunction name="NoDebugForAjax">
<cfif IsAjax()>
<cfsetting showdebugoutput="false">
</cfif>
</cffunction>

remember that you will need to edit your other controllers that you
have an init method in and add:

super.init()

as the first line of the init() method. otherwise the init() method in
the Controller.cfc won't run.

might be a good idea if wheels did this automatically. i don't see any
reason not to and it can be handled by the dispatcher.
Reply all
Reply to author
Forward
0 new messages