I found this thread because I am using the same technique but wanting to write to the console (the Eclipse view) after the game has loaded and is running. Seems like this would be a great way to analyze code while the game is in progress. However, this does not appear to be working.
I am trying to resolve an issue having to do with a random number generator that is selecting a number in a class that is derived from WorldGenAbstractTree and in the generate() method I want to see what a random number is. It seems that that number is the same every time. I plant a sapling, bonemeal it and get the same sized tree.
Any suggestions or knowledge I should check out regarding how to troubleshoot code using the console?
Or perhaps I will have to look at tools in eclipse for monitoring variable values while a program is running if that is available.