Open orsjb opened 8 years ago
For running on devices, and debugging in the IntelliJ plugin I think this is the preferred design: Logging includes errors but not info or debug messages (not sure about this). Logging is piped to the standard output / standard error. Output is piped in the run.sh script to the file stdout. This should therefore pick up all logging plus any System.out commands invoked by users. The file stdout is what is sent back to the IntelliJ plugin when polling a device for debug output.
The HB.jar that gets built by gradle and put into the Developer Kit (both Device and IntelliJ project), seems to be spewing out too much output. @samgwise says that this build (from
gradle deploy
) should result in a jar that is set to output only errors, I think?Also there is confusion now as to whether the output on the device is going to the file stdout or elsewhere. Most importantly, what advice should we be giving users about how to write debug code?