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
Debug code with pyCharm
-
- Posts: 168
- Joined: Tue Nov 07, 2017 11:45 pm
Re: Debug code with pyCharm
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
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
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Debug code with pyCharm
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.
Index to my micropython libraries.