Implementing a basic debug mode for Ruby CLI
In my latest article about debug mode in CLI Ruby programs I am mentioning how to print backtraces on demand, incorporate a logger that does nothing when does not need to and how to directly flush all stdout to the underlying OS without buffering it up.
Post a comment