Skip to main content
July 7, 2009
Question

How to use the CF Debugger with ajax.cfc?

  • July 7, 2009
  • 2 replies
  • 1247 views

I have the Cold Fusion debugger turned on in the CF administrator. However, in using Rob Gonda's ajax.cfc, it has the statement

<cfsetting showdebugoutput="false">

which turns debugging off on any page that uses ajax.cfc. If I comment out this line of code, I get Javascript errors and the ajax call does not work.

Does any one know how to use ajax.cfc and still be able to get the CF debugger information to display?

Thanks,

Mike

    This topic has been closed for replies.

    2 replies

    Dileep_NR
    Inspiring
    July 8, 2009

    please try this

    <script type='text/javascript'>
    _ajaxConfig = {     '_cfscriptLocation':'echoTest.cfc',
                        '_jsscriptFolder':'../js',
                        'debug':true};
    </script>

    refer http://www.robgonda.com/blog/projects/ajaxcfc/examples/echo/

    July 8, 2009

    Catchme,

    Thank you for the suggestion. I had already tried that. That gives another overlay window with what I find to be useless information but not the regular Coldfusion debug information. Please see attached screen shot.

    Mike

    Participating Frequently
    July 7, 2009

    My guess is that you can't have debugging info with ajax.cfc. I

    haven't used ajax.cfc specifically but if the output of ajax.cfc is

    JSON then the debugging output (which is HTML) will break that

    functionality. I usually debug ajax requests using Firebug for Firefox

    or Fiddler for IE.

    Mack