Skip to main content
September 16, 2008
Question

CFDEBUG not working on CF8 Server

  • September 16, 2008
  • 1 reply
  • 6551 views
My company is currently running CF8 Standard Edition, version 8,0,0,176276 on Windows 2003. I am currently working on building an editable CFGRID data grid. I was unable to get the data grid to ever return data, so I put some sample code available on Ben Forta's blog on the system to test. Likewise, the CFGRID never returned any data, and acts like it's infinitely waiting for data from the CFC it's bound to. Copying the exact same files to a dev server (same version of CF8, also running on Windows 2003), the CFGRID works great. I tried to pull up the AJAX debugging window on my production server by adding ?CFDEBUG=true to the end of the url for the CFM file, but no AJAX debug div/window every pops up. Meanwhile, the exact same thing does pop up the AJAX debug window on the dev server. I've tripled checked and the Enable AJAX Debug Log Window option is enabled on both the production and dev server.

At this point, I'm having to assume something is wrong with the installation on our production server. Unfortunately, I have absolutely no idea what could be the issue. Any help would be appreciated.

Some other little tidbits I'd like to add that may or may not have anything to do with this problem:

(1) Creating a simple HTML CFGRID where selectmode is not equal to "edit" does work, as far as returning data, but the CFDEBUG URL option still does nothing.

(2) Enabling debugging for my IP address in the CF Admin control panel has no positive effect, unless I set the debugging output format to "classic" instead of "dockable". If I run with "dockable", the application (not the AJAX) debug window is corrupted and has the following in the top part of the window:
quote:

'); } } function writeCloseBody() { if( debugMode ) { document.write(''); } } //============================== TREE STATE ============================== function setCookie( targetName, value ) { var cookieValue = targetName + "=" + escape(value); var exp = new Date(); var nowPlus30Days = exp.getTime() + (30 * 24 * 60 * 60 * 1000); exp.setTime( nowPlus30Days ); document.cookie = cookieValue + "; expires=" + exp.toGMTString() + ";"; } function getCookieValue( name ) { var thisCookie = document.cookie.split("; ") for( i=0; i
then it goes into the usual " ColdFusion MX Debugging" stuff, but none of the options are clickable. Is this normal?

(3) Just found this one out: if I set the debugging output format to classic, the cfdebug does work. but no errors show in the cfdebug ajax window.

Any ideas? Any help would greatly be appreciated.
    This topic has been closed for replies.

    1 reply

    September 16, 2008
    OK, I've figured this out for the most part. All of my problems with the CFGRID never returning data was due to the "window:global: Exception thrown and not caught " error. After switching to classic debugging output format, the CFDEBUG url param worked, then I noticed that the AJAX debug window had different messages in IE than in FireFox (which is how I found the Exception thrown and not caught error).

    That error is due to our application.cfm having a single HTML comment at the start of the file. Apparently if your Application.cfm or Application.cfc file outputs ANYTHING, binds to CFCs with AJAX (via HTML CFGRID or CFAJAXPROXY, for example) do not work. The CFC will be called, but the data from it will never "flow" into the CFGRID. Removing the comment from the Application.cfm file took care of our CFGRID issue.

    That said, however, my main question becomes: is it normal behavior for the CF debug window to be corrupted when using the dockable output format on a CFGRID/AJAX page bound to a CFC?
    Known Participant
    June 3, 2009

    Wolffen,

    thank you so much for following up on your own posting with the solution you found yourself:

    Apparently if your Application.cfm or Application.cfc file outputs ANYTHING, binds to CFCs with AJAX (via HTML CFGRID or CFAJAXPROXY, for example) do not work. The CFC will be called, but the data from it will never "flow" into the CFGRID. Removing the comment from the Application.cfm file took care of our CFGRID issue.

    I had a similar problem with the autosuggest feature bound to a CFC. It suddenly started throwing the "Exception thrown and not caught" error in IE7 (no other browser available to test with). This drove me nuts for half a day, trying to find out what was wrong. To make things worse, I had the German version of this error message, which didn't turn up anything helpful in Google. Only after reproducing the error in an English version of IE7 and searching for the english error message in Google and the Adobe forums, I came across your posting which led me on the right track:

    I had copied my code over into a test environment to try out some new stuff, and had added just one line of debugging output to Application.cfm, which led to the error. I would never have suspected this little change to Application.cfm to be the cause of all this.

    Regards, Richard