Open joshweir opened 4 years ago
When a command is run through the console, the output is visible in the Rails server process output along with all of the other output.
Capturing output might be a feature we could add, but I suspect it would be difficult to redirect/replace the stdout stream. Considering that rails servers are usually multithreaded, I don't know if there's a clean way to make that work.
I would like to view stdout in the better_errors console. Specifically it's much easier to view a large object via pretty_generate, for example something like this (output in
irb
):but the better_errors console does not provide stdout for
puts
, andJSON.pretty_generate
doesn't stdout either:Is there a way to do this?