Page 1 of 1

Debug code with pyCharm

Posted: Wed Apr 24, 2019 8:53 am
by AlexBir
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

Re: Debug code with pyCharm

Posted: Thu Apr 25, 2019 2:44 am
by rhubarbdog
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

Re: Debug code with pyCharm

Posted: Thu Apr 25, 2019 8:01 am
by pythoncoder
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.