我的 Ajax 中的 ColdFusion 调试输出 [英] ColdFusion debugging output in my Ajax
问题描述
如果我关闭启用请求调试输出"(调试输出设置下的第三个选项),那么我将不再在 $.ajax
调用带有 的 cfc 中获得调试信息访问="远程"
.
If I turn off "Enable Request Debugging Output", the 3rd option under the Debug Output Settings, then I no longer get debug info in my $.ajax
call to a cfc with access="remote"
.
这很好,但我想为我的所有其他程序保持打开状态,并为这个例外以编程方式关闭它.我把
That's good, but I'd like to keep it turned on for all my other programs and turn it off programatically for this one exception. I put
<cfsetting showdebugoutput="false">
在我的 Index.cfm 的顶部,但这并没有关闭来自 cfc 的调试输出.
at the top of my Index.cfm, but that didn't turn off the debug output coming from the cfc.
哦,等等.没关系.我必须将 放在函数中而不是 Index.cfm 中.
Oh wait. Never mind. I had to put the in the function rather than in Index.cfm.
推荐答案
在远程方法的 ajax 调用中尝试 _cf_nodebug=true
.
Try _cf_nodebug=true
in ajax calls to remote methods.
这篇关于我的 Ajax 中的 ColdFusion 调试输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!