Currently we support a 'debug.logToDebugConsole' command to send output to the debug console. We should introduce real API for this.