attach To Console
Direct the data written to the console to go out the serial connection also.
serial.attachToConsole()
When you attach the console to the serial transmit connection, any information you log to the console is transmitted over the serial connection too.
Example
Send some console log messages out through the serial connection.
serial.attachToConsole()
console.log("Send this message to the serial connection")
console.logValue("SerialValue", 999)
See also
serial