I'm debugging a Monte Carlo simulation written in Ruby. At the beginning of each Monte Carlo trial, my code does awhere trialNum is the iteration counter. Unfortunately, this output often fails to appear in until the program has finished running. I guess the output is being buffered. Is there a way to flush the buffer, so that these little progress reports appear in real time?Code:puts trialNum
Bookmarks