Skip to content
ddollar edited this page Jan 4, 2012 · 13 revisions

If you are not seeing any output from your program, there is a likely chance that it is buffering stdout. Ruby buffers stdout by default. To disable this behavior, add this code as early as possible in your program:

# ruby
$stdout.sync = true
Clone this wiki locally