Actions
Feature #20492
openDebug option for tempfile
Status:
Open
Assignee:
-
Target version:
-
Description
Hi,
the ruby lib tempfile is quite useful, but since it always deletes files once the object is garbage collected or the program terminates (or the program explicitely asks to remove the file) it is difficult to debug programs and to check the file contents, after program termination.
Replacing all tempfile uses with regular file operations is awkward.
It therefore would be useful, if file deletion of tempfiles could be completely turned of e.g. through an environment variable or by the program itself, like through a --debug option or when catching errors, like deleting all files during normal program termination, but not if there's a runtime error.
regards
Actions
Like0
Like0Like0