Need help debugging with REPL
Re: Need help debugging with REPL
@pythoncoder - Thanks, Peter. I'll try your approach of running the program from REPL. I have so far been running the program as a startup, without starting from REPL.
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Need help debugging with REPL
It does make things much simpler. When you've debugged your application and you want it to run at startup, my approach is to edit main.py to be a one-liner which runs your program. The beauty of this is that, if it fails or you want to modify it, you can get the REPL back simply by fitting an SD card with a null main.py. Even easier, if you use rshell, you can edit main.py from rshell to comment out the line, then get the REPL back.
There are other ways to get it back, notably the safe boot modes, but that's how I do it
There are other ways to get it back, notably the safe boot modes, but that's how I do it

Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.