I'm somewhat used to writing Python, but still make stupid mistakes from time to time (ok, not from time to time, rather often).
When writing for a pc you run the script and if there's an issue, you get the exception log printed to the sceen/STDOUT.
How do I get that in the PyBoard?
From https://docs.micropython.org/en/latest/ ... /repl.html (ESP8266 related) I found:
Does the PyBoard have some pins that work as something similar to STOUT/STDERR?The REPL is always available on the UART0 serial peripheral, which is connected to the pins GPIO1 for TX and GPIO3 for RX. The baudrate of the REPL is 115200.
Where can I get information on what goes wrong if I upload a script that has issues?
I remember I read somewhere on this forum that someone made his "main" script as a separate module. He would call it from the REPL and only when he was finished, he would convert it to main.py. However, I wonder if there isn't a better way?