When I console.log() a JSON object from a NodeJS app that runs in an iFrame, I can expand/browse the object only as long as the iFrame is open. However, when I log an object and close the iFrame, it is not possible to expand the object anymore. This happens because console.log() is a reference to the original object, and the object does not exist after closing the iFrame.
Does anyone know whether it it possible to allow the object to persist in the dev-tools, even after closing the iFrame?
I am aware that I can log the object using JSON.stringify(obj), but then I lose the option to browse through the object in the dev-tools.
I use FireFox Developer Edition 94.0.