Hello all
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
Print exceptuons from main.py to serial
Re: Print exceptuons from main.py to serial
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.
There is also sys.print_exception: http://docs.micropython.org/en/latest/p ... _exception
There is also sys.print_exception: http://docs.micropython.org/en/latest/p ... _exception