Project

General

Profile

Actions

Feature #20492

open

Debug option for tempfile

Added by hadmut (Hadmut Danisch) 6 months ago. Updated 6 months ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:117901]

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

Also available in: Atom PDF

Like0
Like0Like0