Is there a way to have the exceptions in main.py be printed on the serial console?
This is the best idea I have so far for debugging non reproducible issues with main.py
You can put the REPL on a UART using os.dupterm() (also pyb.repl_uart on pyboard), and then everything that shows up on the REPL will also show up on the serial port.