Debug code with pyCharm

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
AlexBir
Posts: 7
Joined: Tue Apr 23, 2019 1:00 pm

Debug code with pyCharm

Post by AlexBir » Wed Apr 24, 2019 8:53 am

Hi,

How can I debug the code in pyCharm?
The debug button does not activate. why?

what software do you use for code writing and debugging?

Thanks

rhubarbdog
Posts: 168
Joined: Tue Nov 07, 2017 11:45 pm

Re: Debug code with pyCharm

Post by rhubarbdog » Thu Apr 25, 2019 2:44 am

I use any editor. Usually emacs terminal or xed.
To copy my code to the pyboard i have a flash script or i use rshell.
To debug i use serial terminal screen to host a REPL prompt.
I think you can use pyboard.py to "run a program on your laptop" and monitor the output that way

The editor mu has been designed to program microbit but hosts a few different boards has a debug button

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Debug code with pyCharm

Post by pythoncoder » Thu Apr 25, 2019 8:01 am

MicroPython does not have a debugger. Pure Python code can be debugged on a PC under CPython before running it under MicroPython. Where this is impractical (e.g. you're running on a Pyboard) debug it the old skool way with print statements and/or logging.
Peter Hinch
Index to my micropython libraries.

Post Reply