Chris Geirman
Chris Geirman

Reputation: 9684

CFScript's writeDump Doesn't Always Work | cfdump -vs- writeDump

On ACF 10, I have a function with the following signature...

<cffunction name="...">
    <cfargument ...>
    <cfdump var="#arguments#" output="#expandPath('/files/logs/debug.txt')#">
    <cfscript>
          writeDump(var="#arguments#", output="#expandPath('/files/logs/debug.txt')#");
    </cfscript>
</cffunction>

The first tag-based dump works, but the second script-based dump does not. I've had this problem before and I've definitely gotten the tag based dump to work before. It seems random. Sometimes it works, sometimes it doesn't. Once it starts working, it continues... but when it doesn't I can't figure out why.

On the script based variant, I've also tried...

  1. WriteDump(...)
  2. removing the comma separating the two attributes (an other working example is written this way oddly enough)
  3. removing the trailing semi-colon which apparently isn't always necessary per this... Why writedump function doesn't require semicolon in cfscript?

Anyone else having this problem and or know what the solution could be?

PS. Anywhere there's a "..." above, it's just to note that that bit is unimportant

Upvotes: 1

Views: 1002

Answers (1)

Thrived
Thrived

Reputation: 1

Try to restart your application

reloadApplicationOnEveryRequest = true,
reloadFactoryOnEveryRequest = true

Upvotes: 0

Related Questions