keyboardio / Kaleidoscope-Bundle-Keyboardio

A Kaleidoscope distribution for the Keyboardio Model 01 and other keyboards.
Other
17 stars 24 forks source link

Add a DebugStdout "Serial" device to the virtual core as a debugging … #43

Closed obra closed 3 years ago

obra commented 3 years ago

…affordance for developers.

DebugStdout works like a serial port, but allows print-statement debugging when running on our simulator (in a way that will not interfere with 'regular' uses of the Serial API.

Specifically, I expect this to be useful with tools like https://github.com/bblanchon/ArduinoTrace

obra commented 3 years ago

...you are absolutely right.

DebugStderrSerial is more right than DebugStdoutSerial. I think we want serial in the name and I want "debug" in there to make it really clear that this isn't a reasonable platform facility to use. And if we're outing to cerr, we shouldn't call it Stdout ;)