[coldbox-3.7.0] flash variable doesn't persist when debugging is turned on

I have this handler at /handlers/conan.cfc:

component {
function flash_test(event, rc, prc) {
if (flash.exists(“testvar”)) {
prc.existed = true;

}
else {
prc.existed = false;
flash.put(“testvar”, 123);
}
event.setView(view=“flash_test”, noLayout=true);
}
}

And this view that’s used by that handler:

Flash data was present. Flash data was not present.

#Now()#

Reload

What I expect to happen, is that the first time I visit the page, I see “Flash data was not present”, and the value 123 would be put into the testvar key in flash scope. Upon reloading the same page, testvar would be found in flash, I would see the message “Flash data was present”, and the variable would be cleared from flash upon completion of the event. If I continue reloading the page, I would expect to see it alternate between “Flash data was not present” and “Flash data was present.”

If I have debugging turned off, that’s exactly what happens–it alternates between the two outputs. However, if ColdBox debugging is turned on, it never shows that the flash variable was persisted. All I ever see is “Flash data was not present”.

Any idea what I’m doing wrong?

Thanks,
Conan

what do you see when you dump variables.event.getCollection(private=true)?

Here’s the dump of variables.event.getCollection(private=true):

Struct
cbox_incomingContextHash
string 89D5476359D65E9C525D93ECA3C0F649

currentRoute
string :handler/:action/

currentRoutedURL
string conan/flash_test/

currentView
string flash_test

currentViewArgs
Struct

EXISTED
boolean false

viewModule
string

When debugging is turned on, that dump does not change across multiple requests. The “EXISTED” variable is always false. If I turn debugging off, the dump is the same, except that EXISTED then alternates between true and false.

Thanks,
Conan

in your view, what does flash.get(“testvar”) show?