Added hack force debug messages to stdout. Fix for #3194